Delta-v/Content.Server/Power/Components
ShadowCommander e2bf127323
Move ApcPowerReceiverComponent Powered state to shared (#28206)
* Try syncing powered state to client

For some reason the client is not receiving the ApcPowerReceiverComponentState, so it's not working.

* Fix powered state not syncing to client

The client PowerReceiverSystem was abstract, which prevented it from
running initialize.

* Flip check so that it runs bigger checks first

PowerDisabled skips the others.
NeedsPower skips the receiving check.

* Disallow changing Powered manually

* Move Powered update to PowerReceiverSystem

* Move appearance to event subscription

* Move metadata component to AllEntityQuery

* Cleanup

* Move Powered update back to PowerNetSystem

It's easier to use the EntityQueries and it dosen't need to be updated
anywhere else.

* Put appearance updating back

* Move IsPowered to shared

* Simplify IsPowered

* Cleanup

* Remove duplicate PowerChangedEvent

PowerChangedEvent on ProviderChanged doesn't seem to be needed
PowerChangedEvent gets raised by in update if the power state changes
after a new provider is connected
2024-05-30 16:46:22 +10:00
..
ActiveChargerComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
ApcComponent.cs Remove IoC resolves in BaseNetConnectorNodeGroup and friends (#20333) 2023-09-19 22:44:49 +10:00
ApcElectronicsComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
ApcPowerProviderComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
ApcPowerReceiverComponent.cs Move ApcPowerReceiverComponent Powered state to shared (#28206) 2024-05-30 16:46:22 +10:00
BaseApcNetComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
BaseNetConnectorComponent.cs Replace Component.OnRemove with ComponentRemove event subscriptions (#21072) 2023-10-17 19:35:36 -07:00
BasePowerNetComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
BatteryChargerComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
BatteryComponent.cs Remove all obsolete BatteryComponent method calls (#25871) 2024-03-06 16:34:50 +11:00
BatteryDischargerComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
BatterySelfRechargerComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
CableComponent.cs Power monitoring console overhaul (#20927) 2023-12-24 17:07:41 +11:00
CablePlacerComponent.cs Power monitoring console overhaul (#20927) 2023-12-24 17:07:41 +11:00
CableVisComponent.cs Atmos device performance improvements (#26493) 2024-03-30 15:17:53 +11:00
ChargerComponent.cs Resolve all non-obsoleting warnings in content (#27934) 2024-05-11 20:13:58 -07:00
ExaminableBatteryComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
ExtensionCableProviderComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
ExtensionCableReceiverComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
PowerConsumerComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
PowerMonitoringDeviceComponent.cs Power monitoring console overhaul (#20927) 2023-12-24 17:07:41 +11:00
PowerNetworkBatteryComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
PowerSupplierComponent.cs Portable Generator Rework (#19302) 2023-08-25 11:40:42 -07:00
PowerSwitchComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
RiggableComponent.cs Allow solutions to store extra reagent data (#19323) 2023-09-05 07:55:10 +10:00