We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 368e466 commit c09441cCopy full SHA for c09441c
1 file changed
Code/MethodSystem/Methods/MapMethods/GetElevatorsMethod.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 GetElevatorsMethod : ReturningMethod<CollectionValue<ReferenceValue<Elevator>>>
11
+{
12
+ public override string Description => "Returns a collection of references to elevators.";
13
14
+ public override Argument[] ExpectedArguments { get; } = [];
15
16
+ public override void Execute()
17
+ {
18
+ ReturnValue = new(Map.Elevators);
19
+ }
20
+}
0 commit comments