Namespace Content.Server.GameTicking
Classes
GameRunLevelChangedEvent
GameTicker
GhostAttemptHandleEvent
LoadingMapsEvent
Event raised before maps are loaded in pre-round setup. Contains a list of game map prototypes to load; modify it if you want to load different maps, for example as part of a game rule.
ManifestEntry
Describes an entry in the crew manifest.
PlayerBeforeSpawnEvent
Event raised broadcast before a player is spawned by the GameTicker. You can use this event to spawn a player off-station on late-join but also at round start. When this event is handled, the GameTicker will not perform its own player-spawning logic.
PlayerJoinedLobbyEvent
PlayerSpawnCompleteEvent
Event raised both directed and broadcast when a player has been spawned by the GameTicker. You can use this to handle people late-joining, or to handle people being spawned at round start. Can be used to give random players a role, modify their equipment, etc.
PostGameMapLoad
Event raised after the game loads a given map.
PreGameMapLoad
Event raised before the game loads a given map. This event is mutable, and load options should be tweaked if necessary.
RefreshLateJoinAllowedEvent
Event raised to refresh the late join status. If you want to disallow late joins, listen to this and call Disallow.
RoundEndTextAppendEvent
Event raised to allow subscribers to add text to the round end summary screen.
RoundStartAttemptEvent
Attempt event raised on round start. This can be listened to by GameRule systems to cancel round start if some condition is not met, like player count.
RulePlayerJobsAssignedEvent
Event raised after players were assigned jobs by the GameTicker. You can give on-station people special roles by listening to this event.
RulePlayerSpawningEvent
Event raised before readied up players are spawned and given jobs by the GameTicker. You can use this to spawn people off-station, like in the case of nuke ops or wizard. Remove the players you spawned from the PlayerPool and call PlayerJoinGame(IPlayerSession, Boolean) on them.