Show / Hide Table of Contents

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
Namespace: Eco.Gameplay.Occupancy
Assembly: Eco.Gameplay.dll
Syntax
public sealed class BlockOccupancy : ValueType

Constructors

BlockOccupancy(Vector3i)

Declaration
public BlockOccupancy(Vector3i offset)
Parameters
Type Name Description
Vector3i offset

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
Type Name Description
Vector3i offset
System.Type blockType
Quaternion rotation
BlockOccupancyType occupancyType

Fields

BlockType

Declaration
public Type BlockType
Field Value
Type Description
System.Type

OccupancyType

Declaration
public BlockOccupancyType OccupancyType
Field Value
Type Description
BlockOccupancyType

Offset

Declaration
public Vector3i Offset
Field Value
Type Description
Vector3i

Rotation

Declaration
public Quaternion Rotation
Field Value
Type Description
Quaternion

Operators

Implicit(BlockOccupancy to Ray)

Declaration
public static implicit operator Ray(BlockOccupancy occ)
Parameters
Type Name Description
BlockOccupancy occ
Returns
Type Description
Ray

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