Show / Hide Table of Contents

Class WaterRiverGeneratorComponent

A component that will adjust the power output of an object that requires river water.

Inheritance
System.Object
WorldObjectComponent
WaterRiverGeneratorComponent
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 WaterRiverGeneratorComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IChunkSubscriber

Constructors

WaterRiverGeneratorComponent()

Declaration
public WaterRiverGeneratorComponent()

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 IEnumerable<Vector3i> RelevantChunkPositions()
Returns
Type Description
System.Collections.Generic.IEnumerable<Vector3i>

WaterTest()

Tests if the Waterwheel meets all necessary conditions to function. The Waterwheel needs at least some of its blocks submerged in water to function, and needs to be free of obstructions. In order for water to fill blocks occupied by the waterwheel, some of the blocks have to be set as EmptyBlock, which opens the possibility of a block being placed there, so checks exist to ensure this has not happened.

Declaration
public void WaterTest()

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