tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
EventNotification.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Linq;
4
6
8{
12 sealed class EventNotification
13 {
18 public EventType Type { get; }
19
23 public IReadOnlyCollection<string?>? Parameters { get; }
24
30 public EventNotification(EventType eventType, IEnumerable<string?> parameters)
31 {
32 Type = eventType;
33 Parameters = parameters?.ToList() ?? throw new ArgumentNullException(nameof(parameters));
34 }
35 }
36}
Data structure for TopicCommandType.EventNotification requests.
EventNotification(EventType eventType, IEnumerable< string?> parameters)
Initializes a new instance of the EventNotification class.
IReadOnlyCollection< string?>? Parameters
The set of parameters.
EventType
Types of events. Mirror in tgs.dm. Prefer last listed name for script.
Definition EventType.cs:7