Predict gasthermomachines (#33837)

* Predict gasthermomachines

* despawn

* smellby
This commit is contained in:
metalgearsloth
2025-05-13 21:49:43 +10:00
committed by GitHub
parent 24141aa1e9
commit df2257cd92
16 changed files with 236 additions and 135 deletions

View File

@@ -1,8 +1,19 @@
using Content.Client.Power.Components;
using Content.Shared.Power.Components;
using Content.Shared.Power.EntitySystems;
namespace Content.Client.Power.EntitySystems;
public sealed class PowerNetSystem : SharedPowerNetSystem
{
public override bool IsPoweredCalculate(SharedApcPowerReceiverComponent comp)
{
return IsPoweredCalculate((ApcPowerReceiverComponent)comp);
}
private bool IsPoweredCalculate(ApcPowerReceiverComponent comp)
{
return !comp.PowerDisabled
&& !comp.NeedsPower;
}
}