using Content.Shared._CD.Records; namespace Content.Server._CD.Records; /// /// The component on the station that stores records after the round starts. /// [RegisterComponent] [Access(typeof(CharacterRecordsSystem))] public sealed partial class CharacterRecordsComponent : Component { [ViewVariables(VVAccess.ReadOnly)] public Dictionary Records = new(); [ViewVariables(VVAccess.ReadOnly)] private uint _nextKey = 1; /// /// Creates a key has never been used previously /// public uint CreateNewKey() { return _nextKey++; } } public sealed record CharacterRecordKey { public EntityUid Station { get; init; } public uint Index { get; init; } }