-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSetElevatorTextMethod.cs
More file actions
29 lines (24 loc) · 959 Bytes
/
SetElevatorTextMethod.cs
File metadata and controls
29 lines (24 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using JetBrains.Annotations;
using LabApi.Features.Wrappers;
using SER.Code.ArgumentSystem.Arguments;
using SER.Code.ArgumentSystem.BaseArguments;
using SER.Code.MethodSystem.BaseMethods.Synchronous;
using SER.Code.MethodSystem.MethodDescriptors;
namespace SER.Code.MethodSystem.Methods.ElevatorMethods;
[UsedImplicitly]
public class SetElevatorTextMethod : SynchronousMethod, IAdditionalDescription
{
public override string Description => "Changes the text on the elevator panels between LCZ and HCZ.";
public override Argument[] ExpectedArguments =>
[
new TextArgument("text")
{
DefaultValue = new(string.Empty, "Resets the text to it's original value."),
}
];
public override void Execute()
{
Decontamination.ElevatorsText = Args.GetText("text");
}
public string AdditionalDescription => "An empty text value will reset the elevator panel text to it's original value.";
}