Table of Contents

Struct GridCellAddress

Namespace
Shard.Gameplay.World
Assembly
Shard.Gameplay.World.dll

Identifies one possible cell at a grid level, whether or not it is loaded.

public readonly record struct GridCellAddress : IEquatable<GridCellAddress>
Implements
Inherited Members

Remarks

The grid level defines its size; a cell is not necessarily a 32x32x32 terrain section.

Constructors

GridCellAddress(StableEntityId, int, Vector3i)

Identifies one possible cell at a grid level, whether or not it is loaded.

public GridCellAddress(StableEntityId GridId, int Level, Vector3i Coordinates)

Parameters

GridId StableEntityId
Level int
Coordinates Vector3i

Remarks

The grid level defines its size; a cell is not necessarily a 32x32x32 terrain section.

Properties

Coordinates

public Vector3i Coordinates { get; init; }

Property Value

Vector3i

GridId

public StableEntityId GridId { get; init; }

Property Value

StableEntityId

Level

public int Level { get; init; }

Property Value

int