Cojoke
b57174007c
Remove all Assigned Values that are Never Used ( #30110 )
...
Remove all Assigned Values that are never used
2024-07-18 20:22:23 -04:00
Kevin Zheng
d5019cee96
Add CVar to disable pow3r parallel processing ( #28488 )
...
* Add CVar to disable pow3r parallel processing
* Cache CVar value
* Fix pointyhat
* Move all CVar-ing to Content.Server
2024-06-04 16:54:22 +02:00
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
metalgearsloth
7ada1c6674
Update content to new ParallelManager ( #21813 )
2023-11-29 11:00:12 +11:00
DrSmugleaf
f560f88eb5
Remove 700 usages of Component.Owner ( #21100 )
2023-10-19 12:34:31 -07:00
DrSmugleaf
a136616531
Replace Component.OnRemove with ComponentRemove event subscriptions ( #21072 )
2023-10-17 19:35:36 -07:00
metalgearsloth
279674c0b3
Revert "Make lights dim under low power" ( #19708 )
2023-09-01 09:47:30 +10:00
Pieter-Jan Briers
bf16698efa
Portable Generator Rework ( #19302 )
2023-08-25 11:40:42 -07:00
Kevin Zheng
f8bdfd6d26
Make lights dim under low power ( #19317 )
...
* Make lights dim under low power
* Slightly more dramatic curve
2023-08-22 20:29:10 -05:00
metalgearsloth
b478d5326b
Remove component.Initialize calls ( #18230 )
2023-07-26 22:37:52 +10:00
Leon Friedrich
5b09ee3102
Use AllEntityQuery<> In power systems ( #15336 )
2023-04-14 12:45:02 -07:00
metalgearsloth
6fa9104ad7
Update content for pause event changes ( #12970 )
2022-12-14 11:55:51 +11:00
Leon Friedrich
eebb31493c
Parallelize BatteryRampPegSolver ( #12351 )
2022-11-09 12:43:45 +11:00
Leon Friedrich
e29dc8c785
Power struct enumerators ( #12396 )
2022-11-07 03:33:56 +11:00
metalgearsloth
0b38589728
Raise power events by ref and not broadcast ( #11923 )
...
Also some other minor stuff.
2022-10-14 23:08:15 -05:00
metalgearsloth
8905996cfc
Make raiselocalevent not broadcast by default ( #8998 )
2022-06-22 09:53:41 +10:00
Leon Friedrich
2777d2ef64
Update PowerChangedEvent ( #7503 )
...
* Update PowerChangedEvent
* Comments
2022-04-13 23:50:42 +10:00
mirrorcult
ec4d4688c7
Seal/abstract/virtual everything ( #6739 )
2022-02-16 18:23:23 +11:00
metalgearsloth
aaea5dd2d8
Fix Sloth's power crime ( #6443 )
2022-02-02 13:10:31 -07:00
Vera Aguilera Puerto
0a71b62305
Fix build.
...
I HATE STATIC I HATE STATIC I HATE STATIC
2021-12-08 13:07:24 +01:00
Vera Aguilera Puerto
c8b65be747
Replace IEntityManager resolves in systems for cached EntityManager
2021-12-08 13:00:43 +01:00
Vera Aguilera Puerto
5cd42c9ad6
Inline UID
2021-12-03 15:53:09 +01:00
Vera Aguilera Puerto
b835bea086
Inline GetComponent
2021-12-03 11:55:25 +01:00
20kdc
44f5f15790
Power-reading multitool ( #5046 )
...
* AMEPartComponent: Switch to ToolSystem.HasQuality because this bugs me.
* Multitool can read power when you examine a cable with the multitool held.
* Multitool power reading: Condense storage information
* power-sensing multitool: Fix ToolSystem ref.
* Power-reading multitools: Fix misuse of GetComponent
2021-10-29 14:42:18 +02:00
Vera Aguilera Puerto
ed3bf94a3b
Electrocution. ( #4958 )
...
Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com >
2021-10-25 16:21:56 +02:00
Kara D
d3751ee706
whoops
2021-09-29 17:34:34 -07:00
metalgearsloth
8365e8d52c
Event for PowerNetBattery CurrentSupply changing ( #4570 )
...
I re-used AmbientOnPowered but maybe that was lazy; I was doubtful anything would ever have ApcPowerReceiver and PowerNetBatteryComponent.
2021-09-29 17:09:16 -07:00
metalgearsloth
ad783396f8
Update CloseTo to CloseToPercent ( #4708 )
2021-09-29 20:07:01 +10:00
Vera Aguilera Puerto
0be5ff829b
Gets rid of all ComponentManager usages. ( #4707 )
2021-09-28 13:35:29 +02:00
Pieter-Jan Briers
73e4946e27
Pow3r goes brrr with generational IDs.
2021-07-31 02:50:23 +02:00
Pieter-Jan Briers
8c362fcd9b
Use non-directed event for powernet battery sync.
...
Most of the CPU time in the power system was sending these events.
2021-07-29 16:55:09 +02:00
Visne
b7dc3c81ae
Remove redundant #nullable enable ( #4275 )
2021-07-16 17:37:09 -07:00
Pieter-Jan Briers
103bc19508
Pow3r: stage 1 ( #4208 )
...
Co-authored-by: 20kdc <asdd2808@gmail.com >
2021-07-04 18:11:52 +02:00
DrSmugleaf
ff1a2d97ea
Re-organize all projects ( #4166 )
2021-06-09 22:19:39 +02:00