Files
Delta-v/Content.Shared/BarSign/BarSignComponent.cs
T
Nemanja 1bb89bdca5 Selectable Bar Signs (#29068)
* make bar sign selectable

* ajcm strongest soldier

* AJCM comes down hard for round 2

* good shit

* ok ballin

* bless'ed be the webedit
2024-07-25 01:57:58 +02:00

28 lines
708 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared.BarSign;
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
public sealed partial class BarSignComponent : Component
{
/// <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;
}