2022-09-27 20:59:47 +13:00
|
|
|
using Robust.Shared.GameStates;
|
2023-09-28 16:20:29 -07:00
|
|
|
using Robust.Shared.Prototypes;
|
2024-06-30 12:20:57 -04:00
|
|
|
using Robust.Shared.Serialization;
|
2022-09-27 20:59:47 +13:00
|
|
|
|
2023-09-28 16:20:29 -07:00
|
|
|
namespace Content.Shared.BarSign;
|
2022-09-27 20:59:47 +13:00
|
|
|
|
2023-09-28 16:20:29 -07:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
|
|
|
|
|
public sealed partial class BarSignComponent : Component
|
|
|
|
|
{
|
2024-06-30 12:20:57 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// The current bar sign prototype being displayed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField, AutoNetworkedField]
|
|
|
|
|
public ProtoId<BarSignPrototype>? Current;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public enum BarSignUiKey : byte
|
|
|
|
|
{
|
|
|
|
|
Key
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public sealed class SetBarSignMessage(ProtoId<BarSignPrototype> sign) : BoundUserInterfaceMessage
|
|
|
|
|
{
|
|
|
|
|
public ProtoId<BarSignPrototype> Sign = sign;
|
2022-09-27 20:59:47 +13:00
|
|
|
}
|