Table of Contents

Class ClimbableIndex

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

One scene's climbables filed by horizontal cell (CellMetres): each climbable in every cell its line's footprint touches. Built once per scene; queries allocate nothing once the scratch has grown.

public sealed class ClimbableIndex
Inheritance
ClimbableIndex
Inherited Members

Constructors

ClimbableIndex(IReadOnlyList<SceneClimbable>)

public ClimbableIndex(IReadOnlyList<SceneClimbable> climbables)

Parameters

climbables IReadOnlyList<SceneClimbable>

Fields

CellMetres

public const float CellMetres = 16

Field Value

float

Source

public readonly IReadOnlyList<SceneClimbable> Source

Field Value

IReadOnlyList<SceneClimbable>

Methods

Query(Vector3, float, List<int>)

The indices of every climbable filed in the cells under the square of reach round at, ascending and each once. False with none.

public bool Query(Vector3 at, float reach, List<int> into)

Parameters

at Vector3
reach float
into List<int>

Returns

bool