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