Unrestrict device net ids (#8332)

This commit is contained in:
wrexbe
2022-05-22 07:36:21 -07:00
committed by GitHub
parent a1b2a9c142
commit 6fa431cfce
3 changed files with 24 additions and 33 deletions

View File

@@ -31,12 +31,12 @@ public sealed class DeviceNet
public readonly Dictionary<uint, HashSet<DeviceNetworkComponent>> ReceiveAllDevices = new();
private readonly IRobustRandom _random;
public readonly ConnectionType Type;
public readonly int NetId;
public DeviceNet(ConnectionType netType, IRobustRandom random)
public DeviceNet(int netId, IRobustRandom random)
{
_random = random;
Type = netType;
NetId = netId;
}
/// <summary>