CatStation/Content.Server/Power/EntitySystems
Fildrance 1a5e9acb24
Extract notify on non-functioning from emitter (#45346)
* refactor: extracted notify-on-non-functioning feature from emitter component

* refactor: revert server side PowerStateSystem usage of SubscribeLocalEvent - it is not calling base Initialize, skip SetWorkingState raising event on init

* refactor: ensureAPC is now conditional for powerstate

* refactor: fix double notifiation on destruction and on un-powering for emitter

* refactor: added LocTurnedOff for NotifyOnNonFunctioningComponent, fix double alert on destruction, removed emitter-deconstructed-broadcast as it is unused (cannot deconstruct withou unanchor)

* refactor: modernize server PowerStateSystem subscription

* refactor: update and modernize PowerStatePrototypeTest

* refactor: give APE specific radio message upon unlocking

* refactor: extracted PowerStateSystem.SetPowerLoad to split init from triggering is-working change event

* Update Content.Server/Power/EntitySystems/PowerStateSystem.cs

---------

Co-authored-by: AJCM-git <60196617+AJCM-git@users.noreply.github.com>
2026-08-16 23:08:58 +00:00
..
ActivatableUIRequiresPowerSystem.cs cleanup all popups on client and server (#44572) 2026-07-11 14:13:19 +00:00
ApcSystem.cs APC: add visual states for breaker trips, power delivery (#44127) 2026-08-14 15:19:53 +00:00
BatteryInterfaceSystem.cs IoC source gen compatibility (#43863) 2026-05-09 03:29:58 +00:00
BatterySystem.cs Make every EntitySystem partial (#45220) 2026-08-14 18:24:47 +00:00
CableMultitoolSystem.cs IoC source gen compatibility (#43863) 2026-05-09 03:29:58 +00:00
CableSystem.cs Big prototype and datafield cleanup (#45202) 2026-08-12 02:07:22 +00:00
CableSystem.Placer.cs Big prototype and datafield cleanup (#45202) 2026-08-12 02:07:22 +00:00
CableVisSystem.cs IoC source gen compatibility (#43863) 2026-05-09 03:29:58 +00:00
ExtensionCableSystem.cs Use dependency injection for EntityQuery<T>s in Content.Server (#43566) 2026-05-17 15:59:37 +00:00
PowerChargeSystem.cs IoC source gen compatibility (#43863) 2026-05-09 03:29:58 +00:00
PowerConsumerBatteryChargerSystem.cs Xenoborg crystal (#45105) 2026-08-13 00:49:37 +00:00
PowerMonitoringConsoleSystem.cs Remove Comp.Owner from CableAnchorStateChangedEvent (#44629) 2026-07-13 06:09:30 +00:00
PowerNetConnectorSystem.cs Make every EntitySystem partial (#45220) 2026-08-14 18:24:47 +00:00
PowerNetSystem.cs Xenoborg crystal (#45105) 2026-08-13 00:49:37 +00:00
PowerReceiverSystem.cs Make more ApcPowerReceiverComponent fields DataFields (#45022) 2026-07-30 05:10:39 +00:00
PowerStateSystem.cs Extract notify on non-functioning from emitter (#45346) 2026-08-16 23:08:58 +00:00
SpawnOnBatteryFullSystem.cs IoC source gen compatibility (#43863) 2026-05-09 03:29:58 +00:00
StaticPowerSystem.cs LatheSystem independently of energy (#30148) 2024-07-18 22:29:20 +03:00