tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
EventScriptAttribute.cs
Go to the documentation of this file.
1using System;
2
4{
8 [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
10 {
14 public string[] ScriptNames { get; }
15
20 public EventScriptAttribute(params string[] scriptNames)
21 {
22 ScriptNames = scriptNames ?? throw new ArgumentNullException(nameof(scriptNames));
23 }
24 }
25}
Attribute for indicating the script that a given EventType runs.
string[] ScriptNames
The name and order of the scripts the event script the EventType runs.
EventScriptAttribute(params string[] scriptNames)
Initializes a new instance of the EventScriptAttribute class.