Show / Hide Table of Contents

Class WindGeneratorComponent

A component that will adjust the power output of an object that requires a clear area for wind.

Inheritance
System.Object
WorldObjectComponent
WindGeneratorComponent
Implements
ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
IChunkSubscriber
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.IsDestroyed
WorldObjectComponent.Availability
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
Namespace: Eco.Gameplay.Components
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
[RequireComponent]
public class WindGeneratorComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IChunkSubscriber

Constructors

WindGeneratorComponent()

Declaration
public WindGeneratorComponent()

Properties

Enabled

Declaration
public override bool Enabled { get; }
Property Value
Type Description
System.Boolean
Overrides
WorldObjectComponent.Enabled

LastChunkUpdateTime

Declaration
public double LastChunkUpdateTime { get; set; }
Property Value
Type Description
System.Double

MaxQueuedChunkUpdateTime

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

QueuedChunkUpdateTime

Declaration
public double QueuedChunkUpdateTime { get; set; }
Property Value
Type Description
System.Double

UpdateFrequencySec

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

Methods

ChunksChanged()

Trigger the associated behavior if the chunks in RelevantChunkPositions are changed.

Declaration
public void ChunksChanged()

Initialize()

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

RelevantChunkPositions()

Declaration
public List<Vector3i> RelevantChunkPositions()
Returns
Type Description
System.Collections.Generic.List<Vector3i>

UpdateChunkSubscriptions()

Checks if there are any new chunks in the columns this generator occupies and subscribes to them.

Declaration
public void UpdateChunkSubscriptions()

WindTest()

Adjusts power output based on this generators view of the sky.

Declaration
public void WindTest()

Explicit Interface Implementations

IChunkSubscriber.RelevantChunkPositions()

Declaration
IEnumerable<Vector3i> IChunkSubscriber.RelevantChunkPositions()
Returns
Type Description
System.Collections.Generic.IEnumerable<Vector3i>

Implements

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

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