UnitRecord beta
Interface of @v12-engine/engine
ts
export interface UnitRecordA unit as plain data, to take from one mission into the next (carryUnits, placeUnits): what it is, the name the rules knew it by, how much of its health it has (a share, 0 to 1), its veterancy (veterancyPack) and its items slot by slot. Not where it is: the next mission says where they come in. Heroes are carried as heroes (carryOut)
Members
health
ts
health: number;Its health, a share of the most it has: 1 for whole
items
ts
items?: (HeroItem | null)[];Its inventory slot by slot, where it has one: null for an empty slot
name
ts
name?: string;The name it was known by in the rules (world.named), when it had one
type
ts
type: string;Its unit type
veterancy
ts
veterancy?: VeterancyState;Its experience and rank, where it has earned some (veterancyPack)