Class OccupancyRequirementComponent
Will enable/disable worldobject status if it passes through the world object placement requirements, by default the worldObject will use a surface side from
the defined occupancy position to calculate placement requirements, and some specific ones will use surface requirement for more complex requirements
Inheritance
System.Object
OccupancyRequirementComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
[RequireComponent]
public class OccupancyRequirementComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IChunkSubscriber
Constructors
OccupancyRequirementComponent()
Declaration
public OccupancyRequirementComponent()
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()
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> |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods