Logo FSBarV1_Archived

ResolveContext Type

Inputs to resolvePlan packaged so callers can pre-compute expensive values (chokepoints, metal spots) once and reuse them across successive resolve calls.

Record fields

Record Field Description

BaseCentre

Full Usage: BaseCentre

Field type: float32 * float32 * float32

Pinned base centre.

Field type: float32 * float32 * float32

Chokepoints

Full Usage: Chokepoints

Field type: Chokepoint list

Pre-computed chokepoint list (may be empty).

Field type: Chokepoint list

CommanderPos

Full Usage: CommanderPos

Field type: float32 * float32 * float32

Current commander position.

Field type: float32 * float32 * float32

ExistingStructures

Full Usage: ExistingStructures

Field type: OwnStructureFootprint list

Existing placed structure footprints.

Field type: OwnStructureFootprint list

Grid

Full Usage: Grid

Field type: MapGrid

Map data.

Field type: MapGrid

MetalSpotsNearest

Full Usage: MetalSpotsNearest

Field type: (float32 * float32 * float32 * float32) array

Metal spots sorted by distance from base centre; each tuple is (x, y, z, metal).

Field type: (float32 * float32 * float32 * float32) array

Progress

Full Usage: Progress

Field type: PlanProgress

Plan consumption state.

Field type: PlanProgress

UnitDefs

Full Usage: UnitDefs

Field type: UnitDefCache

Unit definition cache for footprint / reach lookups.

Field type: UnitDefCache

Type something to start searching.