Class WaterRiverGeneratorComponent
A component that will adjust the power output of an object that requires river water.
Inheritance
System.Object
WaterRiverGeneratorComponent
Implements
System.ComponentModel.INotifyPropertyChanged
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
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
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
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods