* ADD: Icons, New component. Надо будет рефакторнуть худы в одну систему * Some govno ebanoe * ui * Some govno * UI and UI lol * Dermo again * ы * Добавлена система консоли. Надо добавить манипуляцию с рекордами и сохранение крим. записей на сервер. Я пометил в туду * Added functional for Criminal Records UI * Дропаю это говно * Рабочая версия крим консоли * Fuull functional * Added radio * Arrest info feature * improve ui * another names * New texturem Sprite viewer * fix small names * Added login menu * Final fix. * ох * Убрал логгеры * fix Comments and Access to proto * moved dummy code, removed qustyions * added disposer() when window was close * Small fixes * Removed comments. Added DNA check for CriminalityHud * Small lol --------- Co-authored-by: DocNITE <docnite0530@gmail.com>
44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
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;
|
|
}
|
|
}
|