set thresholds from network, reset command, removes OnFire from sensor data

This commit is contained in:
vulppine
2022-08-18 03:15:13 -07:00
parent 068527b13c
commit 024e301516
3 changed files with 40 additions and 21 deletions

View File

@@ -143,6 +143,21 @@ namespace Content.Server.Atmos.Monitor.Systems
}
}
/// <summary>
/// Reset a single sensor's state.
/// </summary>
/// <param name="uid"></param>
/// <param name="address"></param>
private void ResetSensor(EntityUid uid, string address)
{
var payload = new NetworkPayload
{
[DeviceNetworkConstants.Command] = AtmosMonitorSystem.AtmosMonitorAlarmResetCmd,
};
_deviceNet.QueuePacket(uid, address, payload);
}
/// <summary>
/// Sync this air alarm's mode with the rest of the network.
/// </summary>