MapRandomGroup beta
Interface of @v12-engine/engine
ts
export interface MapRandomGroupA group a placed thing is drawn from when the game starts (random groups, as classic map editors have them): one of these types by weight, or any creep of a level ("a level 3 creep")
Members
choices
ts
choices?: {
type: string;
weight: number;
}[];One of these, more likely by its weight
level
ts
level?: number;Or any unit type with a bounty, of this level
name
ts
name: string;The group's name, which MapObject.random names it by