Show / Hide Table of Contents

Class PowerConsumerComponent

Draws power directly from an MV or HV wire it is on top of.

Inheritance
System.Object
BaseNetConnectorComponent<IBasePowerNet>
PowerConsumerComponent
Implements
IBaseNetConnectorComponent<IBasePowerNet>
Namespace: Content.Server.Power.Components
Assembly: Content.Server.dll
Syntax
public sealed class PowerConsumerComponent : BaseNetConnectorComponent<IBasePowerNet>, IBaseNetConnectorComponent<IBasePowerNet>

Fields

| Improve this Doc View Source

LastReceived

Declaration
public float LastReceived
Field Value
Type Description
System.Single

Properties

| Improve this Doc View Source

DrawRate

How much power this needs to be fully powered.

Declaration
public float DrawRate { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

NetworkLoad

Declaration
public PowerState.Load NetworkLoad { get; }
Property Value
Type Description
PowerState.Load
| Improve this Doc View Source

ReceivedPower

How much power this is currently receiving from PowerSupplierComponents.

Declaration
public float ReceivedPower { get; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

ShowInMonitor

Declaration
public bool ShowInMonitor { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

AddSelfToNet(IBasePowerNet)

Declaration
protected override void AddSelfToNet(IBasePowerNet powerNet)
Parameters
Type Name Description
IBasePowerNet powerNet
Overrides
Content.Server.Power.Components.BaseNetConnectorComponent<Content.Server.Power.NodeGroups.IBasePowerNet>.AddSelfToNet(Content.Server.Power.NodeGroups.IBasePowerNet)
| Improve this Doc View Source

RemoveSelfFromNet(IBasePowerNet)

Declaration
protected override void RemoveSelfFromNet(IBasePowerNet powerNet)
Parameters
Type Name Description
IBasePowerNet powerNet
Overrides
Content.Server.Power.Components.BaseNetConnectorComponent<Content.Server.Power.NodeGroups.IBasePowerNet>.RemoveSelfFromNet(Content.Server.Power.NodeGroups.IBasePowerNet)

Implements

IBaseNetConnectorComponent<TNetType>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾