| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using Robust.Shared.Serialization;
- namespace Content.Shared.NodeContainer
- {
- public static class NodeVis
- {
- [Serializable, NetSerializable]
- public sealed class MsgEnable : EntityEventArgs
- {
- public MsgEnable(bool enabled)
- {
- Enabled = enabled;
- }
- public bool Enabled { get; }
- }
- [Serializable, NetSerializable]
- public sealed class MsgData : EntityEventArgs
- {
- public List<GroupData> Groups = new();
- public List<int> GroupDeletions = new();
- public Dictionary<int, string?> GroupDataUpdates = new();
- }
- [Serializable, NetSerializable]
- public sealed class GroupData
- {
- public int NetId;
- public string GroupId = "";
- public Color Color;
- public NodeDatum[] Nodes = Array.Empty<NodeDatum>();
- public string? DebugData;
- }
- [Serializable, NetSerializable]
- public sealed class NodeDatum
- {
- public NetEntity Entity;
- public int NetId;
- public int[] Reachable = Array.Empty<int>();
- public string Name = "";
- public string Type = "";
- }
- }
- }
|