Class AirAlarmSystem
Inheritance
System.Object
AirAlarmSystem
Namespace: Content.Server.Atmos.Monitor.Systems
Assembly: Content.Server.dll
Syntax
public sealed class AirAlarmSystem : EntitySystem
Fields
| Improve this Doc View SourceAirAlarmSetMode
Command to set an air alarm's mode.
Declaration
public const string AirAlarmSetMode = null
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCalculatePressureAverage(AirAlarmComponent)
Declaration
public float CalculatePressureAverage(AirAlarmComponent alarm)
Parameters
Type | Name | Description |
---|---|---|
AirAlarmComponent | alarm |
Returns
Type | Description |
---|---|
System.Single |
CalculateTemperatureAverage(AirAlarmComponent)
Declaration
public float CalculateTemperatureAverage(AirAlarmComponent alarm)
Parameters
Type | Name | Description |
---|---|---|
AirAlarmComponent | alarm |
Returns
Type | Description |
---|---|
System.Single |
Initialize()
Declaration
public override void Initialize()
SetData(EntityUid, String, IAtmosDeviceData)
Set the data for an air alarm managed device.
Declaration
public void SetData(EntityUid uid, string address, IAtmosDeviceData data)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
System.String | address | The address of the device. |
IAtmosDeviceData | data | The data to send to the device. |
SetMode(EntityUid, String, AirAlarmMode, Boolean, AirAlarmComponent)
Set an air alarm's mode.
Declaration
public void SetMode(EntityUid uid, string origin, AirAlarmMode mode, bool uiOnly = true, AirAlarmComponent controller = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
System.String | origin | The origin address of this mode set. Used for network sync. |
AirAlarmMode | mode | The mode to set the alarm to. |
System.Boolean | uiOnly | Whether this change is for the UI only, or if it changes the air alarm's operating mode. Defaults to true. |
AirAlarmComponent | controller |
Update(Single)
Declaration
public override void Update(float frameTime)
Parameters
Type | Name | Description |
---|---|---|
System.Single | frameTime |
UpdateUI(EntityUid, AirAlarmComponent, DeviceNetworkComponent, AtmosAlarmableComponent)
Declaration
public void UpdateUI(EntityUid uid, AirAlarmComponent alarm = null, DeviceNetworkComponent devNet = null, AtmosAlarmableComponent alarmable = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
AirAlarmComponent | alarm | |
DeviceNetworkComponent | devNet | |
AtmosAlarmableComponent | alarmable |