Class AtmosMonitorSystem
Inheritance
System.Object
AtmosMonitorSystem
Namespace: Content.Server.Atmos.Monitor.Systems
Assembly: Content.Server.dll
Syntax
public sealed class AtmosMonitorSystem : EntitySystem
Fields
| Improve this Doc View SourceAtmosMonitorSetThresholdCmd
Declaration
public const string AtmosMonitorSetThresholdCmd = null
Field Value
Type | Description |
---|---|
System.String |
AtmosMonitorThresholdData
Declaration
public const string AtmosMonitorThresholdData = null
Field Value
Type | Description |
---|---|
System.String |
AtmosMonitorThresholdDataType
Declaration
public const string AtmosMonitorThresholdDataType = null
Field Value
Type | Description |
---|---|
System.String |
AtmosMonitorThresholdGasType
Declaration
public const string AtmosMonitorThresholdGasType = null
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceAlert(EntityUid, AtmosAlarmType, Nullable<HashSet<AtmosMonitorThresholdType>>, AtmosMonitorComponent)
Alerts the network that the state of a monitor has changed.
Declaration
public void Alert(EntityUid uid, AtmosAlarmType state, HashSet<AtmosMonitorThresholdType>? alarms = null, AtmosMonitorComponent monitor = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
AtmosAlarmType | state | The alarm state to set this monitor to. |
System.Nullable<HashSet<AtmosMonitorThresholdType>> | alarms | The alarms that caused this alarm state. |
AtmosMonitorComponent | monitor |
Initialize()
Declaration
public override void Initialize()
SetThreshold(EntityUid, AtmosMonitorThresholdType, AtmosAlarmThreshold, Nullable<Gas>, AtmosMonitorComponent)
Set a monitor's threshold.
Declaration
public void SetThreshold(EntityUid uid, AtmosMonitorThresholdType type, AtmosAlarmThreshold threshold, Gas? gas = null, AtmosMonitorComponent monitor = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
AtmosMonitorThresholdType | type | The type of threshold to change. |
AtmosAlarmThreshold | threshold | Threshold data. |
System.Nullable<Gas> | gas | Gas, if applicable. |
AtmosMonitorComponent | monitor |