Class SpatialGridLayout
- Namespace
- Shard.Gameplay.World
- Assembly
- Shard.Gameplay.World.dll
A loaded spatial grid's immutable address layout.
public sealed class SpatialGridLayout
- Inheritance
-
SpatialGridLayout
- Inherited Members
Constructors
SpatialGridLayout(params ReadOnlySpan<GridSubdivisionLevel>)
public SpatialGridLayout(params ReadOnlySpan<GridSubdivisionLevel> levels)
Parameters
levelsReadOnlySpan<GridSubdivisionLevel>
Properties
Levels
Gets the subdivision levels in caller-defined order.
public IReadOnlyList<GridSubdivisionLevel> Levels { get; }
Property Value
Methods
TryGetLevel(int, out GridSubdivisionLevel)
public bool TryGetLevel(int level, out GridSubdivisionLevel result)
Parameters
levelintresultGridSubdivisionLevel