using Content.Server.Power.Components; using Content.Shared.Power.Components; using Content.Shared.Power.EntitySystems; namespace Content.Server.Power.EntitySystems; public sealed class PowerStateSystem : SharedPowerStateSystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnComponentStartup); } private void OnComponentStartup(Entity ent, ref ComponentStartup args) { EnsureComp(ent); SetWorkingState(ent.Owner, ent.Comp.IsWorking); } }