We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 366cf40 commit 6d37755Copy full SHA for 6d37755
1 file changed
Code/MethodSystem/Methods/MapMethods/GetTeslasMethod.cs
@@ -0,0 +1,20 @@
1
+using JetBrains.Annotations;
2
+using LabApi.Features.Wrappers;
3
+using SER.Code.ArgumentSystem.BaseArguments;
4
+using SER.Code.MethodSystem.BaseMethods.Synchronous;
5
+using SER.Code.ValueSystem;
6
+
7
+namespace SER.Code.MethodSystem.Methods.MapMethods;
8
9
+[UsedImplicitly]
10
+public class GetTeslasMethod : ReturningMethod<CollectionValue<ReferenceValue<Tesla>>>
11
+{
12
+ public override string Description => "Returns a collection of references to teslas.";
13
14
+ public override Argument[] ExpectedArguments { get; } = [];
15
16
+ public override void Execute()
17
+ {
18
+ ReturnValue = new(Map.Teslas);
19
+ }
20
+}
0 commit comments