mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
24 lines
693 B
C#
24 lines
693 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Shared.BarSign
|
|
{
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed class BarSignComponent : Component
|
|
{
|
|
[DataField("current", customTypeSerializer:typeof(PrototypeIdSerializer<BarSignPrototype>))]
|
|
public string? CurrentSign;
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class BarSignComponentState : ComponentState
|
|
{
|
|
public string? CurrentSign;
|
|
|
|
public BarSignComponentState(string? current)
|
|
{
|
|
CurrentSign = current;
|
|
}
|
|
}
|
|
}
|