* Enable nullability in Content.Client * Remove #nullable enable * Merge fixes * Remove Debug.Assert * Merge fixes * Fix build * Fix build
21 lines
555 B
C#
21 lines
555 B
C#
using Content.Shared.GameObjects.Components;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Client.GameObjects.Components
|
|
{
|
|
[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();
|
|
}
|
|
}
|
|
}
|