Try fix invalid entities in device networks (#22845)

* Try fix invalid entities in device networks

* more fixes

* a

* fix device merging
This commit is contained in:
Leon Friedrich
2023-12-21 23:18:40 -05:00
committed by GitHub
parent 02ede7d4a8
commit 0b803e5f8d
8 changed files with 180 additions and 126 deletions

View File

@@ -103,11 +103,17 @@ namespace Content.Server.DeviceNetwork.Components
public bool SendBroadcastAttemptEvent = false;
/// <summary>
/// A list of entities that get sent the <see cref="DeviceShutDownEvent"/> when this entity gets deleted.<br/><br/>
/// When a device subscribes to the deletion of another device the entity id of the device being subscribed
/// to also gets saved on the subscribing device.
/// A list of device-lists that this device is on.
/// </summary>
[DataField("ShutdownSubscribers")]
public HashSet<EntityUid> ShutdownSubscribers = new();
[DataField]
[Access(typeof(DeviceListSystem))]
public HashSet<EntityUid> DeviceLists = new();
/// <summary>
/// A list of configurators that this device is on.
/// </summary>
[DataField]
[Access(typeof(NetworkConfiguratorSystem))]
public HashSet<EntityUid> Configurators = new();
}
}