MissionPartMemory beta
Interface of @v12-engine/engine/ai
ts
export interface MissionPartMemoryWhat a part remembers between thinks, as a save keeps it: its own units, and what its kind adds (an ambush's spring, a wave's count)
Members
acted
ts
acted?: boolean;Whether the ambush's then was carried out
done
ts
done?: boolean;surrenderWhen: whether it gave up
last
ts
last?: number;The tick the last wave was sent at, or the part began at
sent
ts
sent?: number;A wave: how many were sent; the tick the last went at (or the part began at)
sprung
ts
sprung?: number;An ambush: the tick it sprang at, while sprung; how many times it sprang; whether its then was done
times
ts
times?: number;How many times the ambush sprang
took
ts
took: boolean;Whether it took its units yet: they are taken once
units
ts
units: number[];Its own units, by id: what it takes back after a word or a rule had them
v
ts
v: 1;The version of the memory's format: 1 so far