Class PowerGridComponent
Inheritance
System.Object
PowerGridComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
public class PowerGridComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions
Constructors
PowerGridComponent()
Declaration
public PowerGridComponent()
PowerGridComponent(Single, IPowerEnergyType, Boolean)
Declaration
public PowerGridComponent(float radius, IPowerEnergyType energyType, bool alwaysEnabled)
Parameters
Type |
Name |
Description |
System.Single |
radius |
|
IPowerEnergyType |
energyType |
|
System.Boolean |
alwaysEnabled |
|
Fields
Priority
Declaration
public const int Priority = 0
Field Value
Type |
Description |
System.Int32 |
|
Properties
AccumulatorCapacity
Declaration
public float AccumulatorCapacity { get; set; }
Property Value
Type |
Description |
System.Single |
|
AlwaysEnabled
Declaration
public bool AlwaysEnabled { get; protected set; }
Property Value
Type |
Description |
System.Boolean |
|
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
DurabilityUsedPerHourOfUse
Declaration
public float DurabilityUsedPerHourOfUse { get; set; }
Property Value
Type |
Description |
System.Single |
|
Efficiency
Declaration
public float Efficiency { get; }
Property Value
Type |
Description |
System.Single |
|
Enabled
Declaration
public override bool Enabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
EnergyAccumalated
Declaration
public float EnergyAccumalated { get; set; }
Property Value
Type |
Description |
System.Single |
|
EnergyDemand
Declaration
public float EnergyDemand { get; set; }
Property Value
Type |
Description |
System.Single |
|
EnergySelfSupply
Declaration
public bool EnergySelfSupply { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
EnergySupply
Declaration
public float EnergySupply { get; set; }
Property Value
Type |
Description |
System.Single |
|
EnergyType
Declaration
[NewTooltipChildren]
public IPowerEnergyType EnergyType { get; }
Property Value
IconName
Declaration
public override string IconName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
IncludedInGrid
Declaration
public bool IncludedInGrid { get; }
Property Value
Type |
Description |
System.Boolean |
|
Load
Declaration
public float Load { get; }
Property Value
Type |
Description |
System.Single |
|
OnChanged
Declaration
public ThreadSafeAction OnChanged { get; }
Property Value
OperatingPriority
Declaration
public int OperatingPriority { get; }
Property Value
Type |
Description |
System.Int32 |
|
PowerGrid
Declaration
public PowerGrid PowerGrid { get; set; }
Property Value
Radius
Declaration
public float Radius { get; protected set; }
Property Value
Type |
Description |
System.Single |
|
ViewEnergyType
Declaration
public string ViewEnergyType { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Destroy()
Declaration
public override void Destroy()
Overrides
Initialize()
Declaration
public override void Initialize()
Overrides
Initialize(Single, IPowerEnergyType, Int32, Boolean)
Declaration
public void Initialize(float radius, IPowerEnergyType energyType, int operationPriority = 0, bool alwaysEnabled = false)
Parameters
Type |
Name |
Description |
System.Single |
radius |
|
IPowerEnergyType |
energyType |
|
System.Int32 |
operationPriority |
|
System.Boolean |
alwaysEnabled |
|
LateTick()
Declaration
public override void LateTick()
Overrides
Tick()
Declaration
public override void Tick()
Overrides
UpdateEnabled(Boolean, Boolean)
Declaration
public void UpdateEnabled(bool powered, bool isIncludedInGrid)
Parameters
Type |
Name |
Description |
System.Boolean |
powered |
|
System.Boolean |
isIncludedInGrid |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods