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