Skip to content

Commit 99c20d2

Browse files
Update IsRunningMethod.cs
1 parent 69f95cf commit 99c20d2

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

MethodSystem/Methods/ScriptMethods/IsRunningMethod.cs

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,22 @@
33
using SER.MethodSystem.BaseMethods;
44
using SER.ValueSystem;
55
using SER.ScriptSystem;
6-
using System.Collections.Generic;
76
using System.Linq;
87

9-
namespace SER.MethodSystem.Methods.ScriptMethods
8+
namespace SER.MethodSystem.Methods.ScriptMethods;
9+
10+
public class IsRunningMethod : ReturningMethod<BoolValue>
1011
{
11-
public class IsRunningMethod : ReturningMethod<BoolValue>
12-
{
13-
public override string Description => "Returns true if given script is running";
12+
public override string Description => "Returns true if given script is running";
1413

15-
public override Argument[] ExpectedArguments =>
16-
[
17-
new TextArgument("script name")
18-
];
14+
public override Argument[] ExpectedArguments =>
15+
[
16+
new TextArgument("script name")
17+
];
1918

20-
public override void Execute()
21-
{
22-
var name = Args.GetText("script name");
23-
ReturnValue = Script.RunningScripts.Any(scr => scr.Name == name);
24-
}
19+
public override void Execute()
20+
{
21+
var name = Args.GetText("script name");
22+
ReturnValue = Script.RunningScripts.Any(scr => scr.Name == name);
2523
}
26-
}
24+
}

0 commit comments

Comments
 (0)