MicroMemory beta
Interface of @v12-engine/engine/ai
ts
export interface MicroMemoryWhat the micro module remembers between thinks, as a save keeps it
Members
fled
ts
fled: Record<string, {
squad?: string;
since: number;
to: Vec2;
why: 'hurt' | 'injured';
}>;Each unit that fled, by id: the squad it left, since when, where to, and why
focus
ts
focus: Record<string, {
target: number;
since: number;
}>;Whom each squad hits, by squad name: the foe and since when
hiring
ts
hiring?: Record<string, {
place: number;
unit: string;
since: number;
}>;Who is on their way to hire what, by the id of the unit sent: the place that hires, the unit type, since when
kited
ts
kited: Record<string, number>;When each unit last stepped back, by unit id
rolled
ts
rolled: Record<string, boolean>;The chance of each hero plan as it was rolled, by its place in the list
shopping
ts
shopping: Record<string, {
shop: number;
item: string;
since: number;
}>;What each hero is on its way to buy, by hero id
siege
ts
siege: Record<string, {
target: number;
since: number;
}>;What each siege unit was told to shoot, by unit id
v
ts
v: 1;The version of the memory's format: 1 so far