Show / Hide Table of Contents

Class StationEventSystem<T>

An abstract entity system inherited by all station events for their behavior.

Inheritance
System.Object
GameRuleSystem<T>
StationEventSystem<T>
AnomalySpawnRule
BluespaceArtifactRule
BluespaceLockerRule
BreakerFlipRule
BureaucraticErrorRule
CargoGiftsRule
FalseAlarmRule
ImmovableRodRule
KudzuGrowthRule
LoneOpsSpawnRule
MassHallucinationsRule
MeteorSwarmRule
NinjaSpawnRule
PowerGridCheckRule
RandomEntityStorageSpawnRule
RandomSentienceRule
RandomSpawnRule
SolarFlareRule
VentClogRule
VentCrittersRule
Namespace: Content.Server.StationEvents.Events
Assembly: Content.Server.dll
Syntax
public abstract class StationEventSystem<T> : GameRuleSystem<T> where T : Component
Type Parameters
Name Description
T

Fields

| Improve this Doc View Source

AdminLogManager

Declaration
protected readonly IAdminLogManager AdminLogManager
Field Value
Type Description
IAdminLogManager
| Improve this Doc View Source

Audio

Declaration
protected readonly SharedAudioSystem Audio
Field Value
Type Description
SharedAudioSystem
| Improve this Doc View Source

ChatSystem

Declaration
protected readonly ChatSystem ChatSystem
Field Value
Type Description
ChatSystem
| Improve this Doc View Source

MapManager

Declaration
protected readonly IMapManager MapManager
Field Value
Type Description
Robust.Shared.Map.IMapManager
| Improve this Doc View Source

PrototypeManager

Declaration
protected readonly IPrototypeManager PrototypeManager
Field Value
Type Description
Robust.Shared.Prototypes.IPrototypeManager
| Improve this Doc View Source

RobustRandom

Declaration
protected readonly IRobustRandom RobustRandom
Field Value
Type Description
Robust.Shared.Random.IRobustRandom
| Improve this Doc View Source

Sawmill

Declaration
protected ISawmill Sawmill
Field Value
Type Description
ISawmill
| Improve this Doc View Source

StationSystem

Declaration
protected readonly StationSystem StationSystem
Field Value
Type Description
StationSystem

Methods

| Improve this Doc View Source

Added(EntityUid, T, GameRuleComponent, GameRuleAddedEvent)

Called when the gamerule is added

Declaration
protected override void Added(EntityUid uid, T component, GameRuleComponent gameRule, GameRuleAddedEvent args)
Parameters
Type Name Description
EntityUid uid
T component
GameRuleComponent gameRule
Content.Server.GameTicking.Rules.Components.GameRuleAddedEvent args
Overrides
Content.Server.GameTicking.Rules.GameRuleSystem<T>.Added(EntityUid, T, Content.Server.GameTicking.Rules.Components.GameRuleComponent, Content.Server.GameTicking.Rules.Components.GameRuleAddedEvent)
| Improve this Doc View Source

Ended(EntityUid, T, GameRuleComponent, GameRuleEndedEvent)

Called when the gamerule ends

Declaration
protected override void Ended(EntityUid uid, T component, GameRuleComponent gameRule, GameRuleEndedEvent args)
Parameters
Type Name Description
EntityUid uid
T component
GameRuleComponent gameRule
Content.Server.GameTicking.Rules.Components.GameRuleEndedEvent args
Overrides
Content.Server.GameTicking.Rules.GameRuleSystem<T>.Ended(EntityUid, T, Content.Server.GameTicking.Rules.Components.GameRuleComponent, Content.Server.GameTicking.Rules.Components.GameRuleEndedEvent)
| Improve this Doc View Source

ForceEndSelf(EntityUid, GameRuleComponent)

Declaration
protected void ForceEndSelf(EntityUid uid, GameRuleComponent component = null)
Parameters
Type Name Description
EntityUid uid
GameRuleComponent component
| Improve this Doc View Source

GetSeverityModifier()

Declaration
public float GetSeverityModifier()
Returns
Type Description
System.Single
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
Overrides
Content.Server.GameTicking.Rules.GameRuleSystem<T>.Initialize()
| Improve this Doc View Source

Started(EntityUid, T, GameRuleComponent, GameRuleStartedEvent)

Called when the gamerule begins

Declaration
protected override void Started(EntityUid uid, T component, GameRuleComponent gameRule, GameRuleStartedEvent args)
Parameters
Type Name Description
EntityUid uid
T component
GameRuleComponent gameRule
Content.Server.GameTicking.Rules.Components.GameRuleStartedEvent args
Overrides
Content.Server.GameTicking.Rules.GameRuleSystem<T>.Started(EntityUid, T, Content.Server.GameTicking.Rules.Components.GameRuleComponent, Content.Server.GameTicking.Rules.Components.GameRuleStartedEvent)
| Improve this Doc View Source

TryFindRandomTile(out Vector2i, out Nullable<EntityUid>, out EntityUid, out EntityCoordinates)

Declaration
protected bool TryFindRandomTile(out Vector2i tile, out EntityUid? targetStation, out EntityUid targetGrid, out EntityCoordinates targetCoords)
Parameters
Type Name Description
Vector2i tile
System.Nullable<EntityUid> targetStation
EntityUid targetGrid
Robust.Shared.Map.EntityCoordinates targetCoords
Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryGetRandomStation(out Nullable<EntityUid>, Nullable<Func<EntityUid, Boolean>>)

Declaration
protected bool TryGetRandomStation(out EntityUid? station, Func<EntityUid, bool>? filter = null)
Parameters
Type Name Description
System.Nullable<EntityUid> station
System.Nullable<Func<EntityUid, System.Boolean>> filter
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Update(Single)

Called every tick when this event is running. Events are responsible for their own lifetime, so this handles starting and ending after time.

Declaration
public override void Update(float frameTime)
Parameters
Type Name Description
System.Single frameTime
Overrides
Content.Server.GameTicking.Rules.GameRuleSystem<T>.Update(System.Single)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾