Files
tbd-station-14/Content.Shared/NodeContainer/NodeVis.cs
Pieter-Jan Briers 103bc19508 Pow3r: stage 1 (#4208)
Co-authored-by: 20kdc <asdd2808@gmail.com>
2021-07-04 18:11:52 +02:00

49 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
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();
}
[Serializable, NetSerializable]
public sealed class GroupData
{
public int NetId;
public string GroupId = "";
public Color Color;
public NodeDatum[] Nodes = Array.Empty<NodeDatum>();
}
[Serializable, NetSerializable]
public sealed class NodeDatum
{
public EntityUid Entity;
public int NetId;
public int[] Reachable = Array.Empty<int>();
public string Name = "";
public string Type = "";
}
}
}