Files
Delta-v/Content.Server/_CD/Records/CharacterRecordsComponent.cs
T
LyndomenandJanet Blackquill f024f46b0b Port Height & Records Computer from Cosmatic Drift (#2236)
* Port character records from CD

* Make species' base scales respected by CD heights

* Hide the height editor in the humanoid profile editor

---------

Co-authored-by: Janet Blackquill <uhhadd@gmail.com>
2025-03-11 15:34:45 +00:00

32 lines
775 B
C#

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