| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- namespace Content.Shared.StationRecords;
- public abstract class SharedStationRecordsSystem : EntitySystem
- {
- public StationRecordKey? Convert((NetEntity, uint)? input)
- {
- return input == null ? null : Convert(input.Value);
- }
- public (NetEntity, uint)? Convert(StationRecordKey? input)
- {
- return input == null ? null : Convert(input.Value);
- }
- public StationRecordKey Convert((NetEntity, uint) input)
- {
- return new StationRecordKey(input.Item2, GetEntity(input.Item1));
- }
- public (NetEntity, uint) Convert(StationRecordKey input)
- {
- return (GetNetEntity(input.OriginStation), input.Id);
- }
- public List<(NetEntity, uint)> Convert(ICollection<StationRecordKey> input)
- {
- var result = new List<(NetEntity, uint)>(input.Count);
- foreach (var entry in input)
- {
- result.Add(Convert(entry));
- }
- return result;
- }
- public List<StationRecordKey> Convert(ICollection<(NetEntity, uint)> input)
- {
- var result = new List<StationRecordKey>(input.Count);
- foreach (var entry in input)
- {
- result.Add(Convert(entry));
- }
- return result;
- }
- }
|