tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Components
Events
EventScriptAttribute.cs
Go to the documentation of this file.
1
using
System;
2
3
namespace
Tgstation.Server.Host.Components.Events
4
{
8
[AttributeUsage(AttributeTargets.Field, AllowMultiple =
false
)]
9
sealed
class
EventScriptAttribute
:
Attribute
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
Tgstation.Server.Host.Components.Events.EventScriptAttribute
Attribute for indicating the script that a given EventType runs.
Definition
EventScriptAttribute.cs:10
Tgstation.Server.Host.Components.Events.EventScriptAttribute.ScriptNames
string[] ScriptNames
The name and order of the scripts the event script the EventType runs.
Definition
EventScriptAttribute.cs:14
Tgstation.Server.Host.Components.Events.EventScriptAttribute.EventScriptAttribute
EventScriptAttribute(params string[] scriptNames)
Initializes a new instance of the EventScriptAttribute class.
Definition
EventScriptAttribute.cs:20
Tgstation.Server.Host.Components.Events
Definition
EventConsumer.cs:10
Generated by
1.9.8