Show / Hide Table of Contents

Class PowerConsumptionComponent

Inheritance
System.Object
WorldObjectComponent
PowerConsumptionComponent
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.Destroy()
WorldObjectComponent.Tick()
WorldObjectComponent.LateTick()
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.IconName
WorldObjectComponent.ForceActiveTab
WorldObjectComponent.ComponentPrefabName
WorldObjectComponent.ComponentTabName
WorldObjectComponent.Enabled
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]
[ChatCommandHandler]
public class PowerConsumptionComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions

Constructors

PowerConsumptionComponent()

Declaration
public PowerConsumptionComponent()

PowerConsumptionComponent(Single)

Declaration
public PowerConsumptionComponent(float joulesPerSecond)
Parameters
Type Name Description
System.Single joulesPerSecond

Properties

Availability

Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Type Description
WorldObjectComponentClientAvailability
Overrides
WorldObjectComponent.Availability

JoulesPerSecond

Declaration
public float JoulesPerSecond { get; }
Property Value
Type Description
System.Single

OverrideJoulesPerSecond

Declaration
public float OverrideJoulesPerSecond { get; }
Property Value
Type Description
System.Single

Methods

Initialize()

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

Initialize(Single)

Declaration
public void Initialize(float watts)
Parameters
Type Name Description
System.Single watts

OverridePowerConsumption(Single)

Declaration
public void OverridePowerConsumption(float overrideWatts)
Parameters
Type Name Description
System.Single overrideWatts

SetPowerCost(User, Single, Single)

Declaration
[ChatSubCommand]
public static void SetPowerCost(User user, float cost = 0F, float radius = 20F)
Parameters
Type Name Description
User user
System.Single cost
System.Single radius

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
☀
☾