force alert on alarmable, enforces synchronization with alarmables to be bounded by the tags that it can sync with
This commit is contained in:
@@ -10,11 +10,6 @@ namespace Content.Server.Atmos.Monitor.Systems;
|
||||
/// </summary>
|
||||
public sealed class AtmosDeviceNetworkSystem : EntitySystem
|
||||
{
|
||||
/// <summary>
|
||||
/// Any information about atmosphere that a device can scan.
|
||||
/// </summary>
|
||||
public const string AtmosData = "atmos_atmosphere_data";
|
||||
|
||||
/// <summary>
|
||||
/// Register a device's address on this device.
|
||||
/// </summary>
|
||||
@@ -25,11 +20,6 @@ public sealed class AtmosDeviceNetworkSystem : EntitySystem
|
||||
/// </summary>
|
||||
public const string SyncData = "atmos_sync_data";
|
||||
|
||||
/// <summary>
|
||||
/// Set the state of this device using the contained data.
|
||||
/// </summary>
|
||||
public const string SetState = "atmos_set_state";
|
||||
|
||||
[Dependency] private readonly DeviceNetworkSystem _deviceNet = default!;
|
||||
|
||||
public void Register(EntityUid uid, string? address)
|
||||
@@ -56,8 +46,8 @@ public sealed class AtmosDeviceNetworkSystem : EntitySystem
|
||||
{
|
||||
var payload = new NetworkPayload()
|
||||
{
|
||||
[DeviceNetworkConstants.Command] = SetState,
|
||||
[SetState] = data
|
||||
[DeviceNetworkConstants.Command] = DeviceNetworkConstants.CmdSetState,
|
||||
[DeviceNetworkConstants.CmdSetState] = data
|
||||
};
|
||||
|
||||
_deviceNet.QueuePacket(uid, address, payload);
|
||||
|
||||
Reference in New Issue
Block a user