Files
tbd-station-14/Content.Shared/Power/Components/SharedApcPowerReceiverComponent.cs
metalgearsloth fd52f698c7 Predict PoweredLights (#36541)
* Move PoweredLight to shared

* Predict the rest of the owl

* reacher

* compinit & anim

* Fix names

* Revert this?

* Fix these

* chicken drummies

* deita

* Fix

* review

* fix

* fixes

* fix PVS weirdness

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-08-11 23:06:28 +02:00

26 lines
758 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Power.Components;
[NetworkedComponent]
public abstract partial class SharedApcPowerReceiverComponent : Component
{
[ViewVariables]
public bool Powered;
/// <summary>
/// When false, causes this to appear powered even if not receiving power from an Apc.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public virtual bool NeedsPower { get; set;}
/// <summary>
/// When true, causes this to never appear powered.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public virtual bool PowerDisabled { get; set; }
// Doesn't actually do anything on the client just here for shared code.
public abstract float Load { get; set; }
}