27 lines
613 B
C#
27 lines
613 B
C#
using Content.Shared.Actions.ActionTypes;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Clothing;
|
|
|
|
[RegisterComponent, NetworkedComponent()]
|
|
public sealed class MagbootsComponent : Component
|
|
{
|
|
[DataField("toggleAction", required: true)]
|
|
public InstantAction ToggleAction = new();
|
|
|
|
[ViewVariables]
|
|
public bool On;
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class MagbootsComponentState : ComponentState
|
|
{
|
|
public bool On { get; }
|
|
|
|
public MagbootsComponentState(bool @on)
|
|
{
|
|
On = on;
|
|
}
|
|
}
|
|
}
|