Content update for NetEntities (#18935)

This commit is contained in:
metalgearsloth
2023-09-11 09:42:41 +10:00
committed by GitHub
parent 389c8d1a2c
commit 5a0fc68be2
526 changed files with 3058 additions and 2215 deletions

View File

@@ -63,7 +63,7 @@ public sealed class GeneralStationRecordConsoleSystem : EntitySystem
var consoleRecords =
_stationRecordsSystem.GetRecordsOfType<GeneralStationRecord>(owningStation.Value, stationRecordsComponent);
var listing = new Dictionary<StationRecordKey, string>();
var listing = new Dictionary<(NetEntity, uint), string>();
foreach (var pair in consoleRecords)
{
@@ -72,7 +72,7 @@ public sealed class GeneralStationRecordConsoleSystem : EntitySystem
continue;
}
listing.Add(pair.Item1, pair.Item2.Name);
listing.Add(_stationRecordsSystem.Convert(pair.Item1), pair.Item2.Name);
}
if (listing.Count == 0)
@@ -89,7 +89,7 @@ public sealed class GeneralStationRecordConsoleSystem : EntitySystem
GeneralStationRecord? record = null;
if (console.ActiveKey != null)
{
_stationRecordsSystem.TryGetRecord(owningStation.Value, console.ActiveKey.Value, out record,
_stationRecordsSystem.TryGetRecord(owningStation.Value, _stationRecordsSystem.Convert(console.ActiveKey.Value), out record,
stationRecordsComponent);
}