Skip to content

PackFile beta ​

Interface of @v12-engine/engine

ts
export interface PackFile

A pack of content as its file has it (packs/<id>/pack.json): plain data, checked against the pack's schema (@v12-engine/engine/schemas/pack.schema.json) as it is read. Its definitions are added to the game's, or put in the place of those of the same id; then its data is laid over the whole as a data.json is (layData), and its settings over the game's

Members ​

abilities ​

ts
abilities?: AbilityDef[];

Ability definitions the pack adds or replaces

buffs ​

ts
buffs?: BuffDef[];

Buff definitions the pack adds or replaces

data ​

ts
data?: GameData;

Values over the definitions, as a data.json has them (GameData): the editor's Data panel writes here for a pack

id ​

ts
id: string;

Letters, digits, dots and dashes: what the game composed of it is called by (melee+<id>)

items ​

ts
items?: ItemDef[];

Item definitions the pack adds or replaces

looks ​

ts
looks?: Record<string, unknown>;

What its units look like, as a looks.json has them: the client's to lay over the game's view

name ​

ts
name?: string;

A human-readable name for the pack, shown where the id is not enough

races ​

ts
races?: RaceDef[];

Race definitions the pack adds or replaces

requires ​

ts
requires?: string[];

The game and the packs or mods it is made for, as a mod's (ModDef.requires)

settings ​

ts
settings?: RuleSettingsInit;

The rules it changes, as data (GameBuilder.settings)

units ​

ts
units?: UnitTypeDef[];

Unit type definitions the pack adds to the game's or puts in the place of those of the same id

upgrades ​

ts
upgrades?: UpgradeDef[];

Upgrade definitions the pack adds or replaces

version ​

ts
version: string;

major.minor.patch