2021-07-30 16:05:07 -07:00
|
|
|
using Content.Shared.Clothing;
|
2021-01-11 19:24:09 +01:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
2021-07-30 16:05:07 -07:00
|
|
|
namespace Content.Client.Clothing
|
2021-01-11 19:24:09 +01:00
|
|
|
{
|
|
|
|
|
[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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|