Class BlockOccupancy
Represents an occupancy position in a world object. Used to check if a block is available relative to the world object position. They are mainly used in WorldOccupancyAutogen.cs to declare each occupancy from a WorldObject
Inheritance
System.Object
BlockOccupancy
Assembly: Eco.Gameplay.dll
Syntax
public sealed class BlockOccupancy : ValueType
Constructors
BlockOccupancy(Vector3i)
Declaration
public BlockOccupancy(Vector3i offset)
Parameters
BlockOccupancy(Vector3i, Type)
Declaration
public BlockOccupancy(Vector3i offset, Type blockType)
Parameters
Type |
Name |
Description |
Vector3i |
offset |
|
System.Type |
blockType |
|
BlockOccupancy(Vector3i, Type, Quaternion, BlockOccupancyType)
Declaration
public BlockOccupancy(Vector3i offset, Type blockType, Quaternion rotation, BlockOccupancyType occupancyType)
Parameters
Fields
BlockType
Declaration
Field Value
Type |
Description |
System.Type |
|
OccupancyType
Declaration
public BlockOccupancyType OccupancyType
Field Value
Offset
Declaration
Field Value
Rotation
Declaration
public Quaternion Rotation
Field Value
Operators
Implicit(BlockOccupancy to Ray)
Declaration
public static implicit operator Ray(BlockOccupancy occ)
Parameters
Returns
Extension Methods