1
0

BarSignComponent.cs 708 B

123456789101112131415161718192021222324252627
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.Serialization;
  4. namespace Content.Shared.BarSign;
  5. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
  6. public sealed partial class BarSignComponent : Component
  7. {
  8. /// <summary>
  9. /// The current bar sign prototype being displayed.
  10. /// </summary>
  11. [DataField, AutoNetworkedField]
  12. public ProtoId<BarSignPrototype>? Current;
  13. }
  14. [Serializable, NetSerializable]
  15. public enum BarSignUiKey : byte
  16. {
  17. Key
  18. }
  19. [Serializable, NetSerializable]
  20. public sealed class SetBarSignMessage(ProtoId<BarSignPrototype> sign) : BoundUserInterfaceMessage
  21. {
  22. public ProtoId<BarSignPrototype> Sign = sign;
  23. }