File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed
MethodSystem/Methods/ScriptMethods Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change 33using SER . MethodSystem . BaseMethods ;
44using SER . ValueSystem ;
55using SER . ScriptSystem ;
6- using System . Collections . Generic ;
76using 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+ }
You can’t perform that action at this time.
0 commit comments