Class EventManagerSystem
Inheritance
System.Object
EventManagerSystem
Assembly: Content.Server.dll
Syntax
public sealed class EventManagerSystem : EntitySystem
Fields
|
Improve this Doc
View Source
GameTicker
Declaration
public readonly GameTicker GameTicker
Field Value
Properties
|
Improve this Doc
View Source
EventsEnabled
Declaration
public bool EventsEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
AllEvents()
Declaration
public Dictionary<EntityPrototype, StationEventComponent> AllEvents()
Returns
|
Improve this Doc
View Source
Initialize()
Declaration
public override void Initialize()
|
Improve this Doc
View Source
PickRandomEvent()
Randomly picks a valid event.
Declaration
public string? PickRandomEvent()
Returns
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
RunRandomEvent()
Randomly runs a valid event.
Declaration
public string RunRandomEvent()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Shutdown()
Declaration
public override void Shutdown()
|
Improve this Doc
View Source
TimeSinceLastEvent(EntityPrototype)
Declaration
public TimeSpan TimeSinceLastEvent(EntityPrototype stationEvent)
Parameters
Type |
Name |
Description |
Robust.Shared.Prototypes.EntityPrototype |
stationEvent |
|
Returns
Type |
Description |
TimeSpan |
|