2023-02-28 11:03:55 -05:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.StationRecords;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class StationRecordKeyStorageComponent : Component
|
2023-02-28 11:03:55 -05:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The key stored in this component.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public StationRecordKey? Key;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public sealed class StationRecordKeyStorageComponentState : ComponentState
|
|
|
|
|
{
|
2023-09-11 09:42:41 +10:00
|
|
|
public (NetEntity, uint)? Key;
|
2023-02-28 11:03:55 -05:00
|
|
|
|
2023-09-11 09:42:41 +10:00
|
|
|
public StationRecordKeyStorageComponentState((NetEntity, uint)? key)
|
2023-02-28 11:03:55 -05:00
|
|
|
{
|
|
|
|
|
Key = key;
|
|
|
|
|
}
|
|
|
|
|
}
|