21 lines
524 B
C#
21 lines
524 B
C#
using Content.Shared.Clothing;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Client.Clothing
|
|
{
|
|
[RegisterComponent]
|
|
public sealed class MagbootsComponent : SharedMagbootsComponent
|
|
{
|
|
public override bool On { get; set; }
|
|
|
|
public override void HandleComponentState(ComponentState? curState, ComponentState? nextState)
|
|
{
|
|
if (curState is not MagbootsComponentState compState)
|
|
return;
|
|
|
|
On = compState.On;
|
|
OnChanged();
|
|
}
|
|
}
|
|
}
|