Show / Hide Table of Contents

Class PowerGridComponent

Inheritance
System.Object
WorldObjectComponent
PowerGridComponent
Implements
ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
Inherited Members
WorldObjectComponent.IsRPCAuthorized(IWorldObserver, AccessType, Object[])
WorldObjectComponent.PostInitialize()
WorldObjectComponent.OnCreate()
WorldObjectComponent.TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
WorldObjectComponent.OnPickup(Player)
WorldObjectComponent.OnBeforeObjectMoved()
WorldObjectComponent.OnAfterObjectMoved()
WorldObjectComponent.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
WorldObjectComponent.UILinkContent()
WorldObjectComponent.Parent
WorldObjectComponent.Name
WorldObjectComponent.ForceActiveTab
WorldObjectComponent.ComponentPrefabName
WorldObjectComponent.ComponentTabName
WorldObjectComponent.IsDestroyed
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
Namespace: Eco.Gameplay.Components
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
Type Description
WorldObjectComponentClientAvailability
Overrides
WorldObjectComponent.Availability

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
WorldObjectComponent.Enabled

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
Type Description
IPowerEnergyType

IconName

Declaration
public override string IconName { get; }
Property Value
Type Description
System.String
Overrides
WorldObjectComponent.IconName

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
Type Description
ThreadSafeAction

OperatingPriority

Declaration
public int OperatingPriority { get; }
Property Value
Type Description
System.Int32

PowerGrid

Declaration
public PowerGrid PowerGrid { get; set; }
Property Value
Type Description
PowerGrid

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
WorldObjectComponent.Destroy()

Initialize()

Declaration
public override void Initialize()
Overrides
WorldObjectComponent.Initialize()

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
WorldObjectComponent.LateTick()

Tick()

Declaration
public override void Tick()
Overrides
WorldObjectComponent.Tick()

UpdateEnabled(Boolean, Boolean)

Declaration
public void UpdateEnabled(bool powered, bool isIncludedInGrid)
Parameters
Type Name Description
System.Boolean powered
System.Boolean isIncludedInGrid

Implements

ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IHasInteractions

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾