Namespace GridForge.Spatial
Classes
- GridPlane2d
Provides GridForge's 2D XZ-plane projection helpers.
- HexDirectionUtility
Provides hex-prism neighbor direction utilities.
- PartitionProvider<TPartitionBase>
Provides efficient storage and retrieval of partitions keyed by their exact concrete Type.
- RectangularDirectionUtility
Provides rectangular-prism neighbor direction utilities.
Structs
- VoxelIndex
Represents the topology-local coordinates of a voxel within a single grid. Rectangular-prism grids interpret the fields as X, Y, and Z. Hex-prism grids interpret them as axial Q, vertical layer, and axial R.
- WorldVoxelIndex
Represents the world-scoped runtime identity of a voxel. Used for uniquely identifying voxels across multiple grids and world instances.
Interfaces
- IVoxelOccupant
Represents an entity that can occupy a Voxel. Occupants can be dynamic entities such as units or items (obstacles). GridForge owns occupancy bookkeeping for registered occupants.
- IVoxelPartition
Represents a partition within a Voxel that modifies its behavior. Partitions can define special attributes or metadata for a voxel, such as terrain type or navigation properties.
Enums
- HexDirection
Represents the 20 possible neighbor directions in a hex-prism grid. Offsets are expressed as axial Q, vertical layer, and axial R.
- RectangularDirection
Represents the 26 possible neighbor directions in a rectangular-prism 3x3x3 grid. The integer ordering is used for neighbor indexing and deterministic preferences.
- VoxelNeighborScope
Selects which grid groups are included by voxel contact-neighbor queries.