Table of Contents

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

levels ReadOnlySpan<GridSubdivisionLevel>

Properties

Levels

Gets the subdivision levels in caller-defined order.

public IReadOnlyList<GridSubdivisionLevel> Levels { get; }

Property Value

IReadOnlyList<GridSubdivisionLevel>

Methods

TryGetLevel(int, out GridSubdivisionLevel)

public bool TryGetLevel(int level, out GridSubdivisionLevel result)

Parameters

level int
result GridSubdivisionLevel

Returns

bool