CatStation/Content.Shared/StationRecords/Components/StationRecordKeyStorageComponent.cs
Rouden 4d0c40f358
Predict StationRecords (#40240)
* Make StationRecords YAML savable

* Update SharedStationRecordsSystem.cs

* Predict Station Records

* Attribute subs, query Resolve & DirtyFields

* Cleanup, prediction fixes, locale fixes

* Update GeneralRecordsUi.cs

Remove GeneralStationRecordConsoleState and obsolete SelectStationRecord
2026-07-17 03:36:39 +00:00

25 lines
627 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.StationRecords.Components;
[RegisterComponent, NetworkedComponent]
public sealed partial class StationRecordKeyStorageComponent : Component
{
/// <summary>
/// The key stored in this component.
/// </summary>
[ViewVariables]
public StationRecordKey? Key;
}
[Serializable, NetSerializable]
public sealed class StationRecordKeyStorageComponentState : ComponentState
{
public (NetEntity, uint)? Key;
public StationRecordKeyStorageComponentState((NetEntity, uint)? key)
{
Key = key;
}
}