Delta-v/Content.Server/Power/Components
ShadowCommander ebddaa8e3d
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-06-01 17:38:41 +02: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-27 21:59:12 +02: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-06-01 17:38:41 +02: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-20 15:30:20 +02: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-07 01:52:46 +01: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) 2024-01-22 18:28:33 +01:00
CablePlacerComponent.cs Power monitoring console overhaul (#20927) 2024-01-22 18:28:33 +01:00
CableVisComponent.cs Atmos device performance improvements (#26493) 2024-04-07 14:14:34 +02:00
ChargerComponent.cs Turbo Recharger (#23723) 2024-01-26 22:12:03 +01: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) 2024-01-22 18:28:33 +01: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