PackFile beta
Interface of @v12-engine/engine
export interface PackFileA 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
abilities?: AbilityDef[];Ability definitions the pack adds or replaces
buffs
buffs?: BuffDef[];Buff definitions the pack adds or replaces
data
data?: GameData;Values over the definitions, as a data.json has them (GameData): the editor's Data panel writes here for a pack
id
id: string;Letters, digits, dots and dashes: what the game composed of it is called by (melee+<id>)
items
items?: ItemDef[];Item definitions the pack adds or replaces
looks
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
name?: string;A human-readable name for the pack, shown where the id is not enough
races
races?: RaceDef[];Race definitions the pack adds or replaces
requires
requires?: string[];The game and the packs or mods it is made for, as a mod's (ModDef.requires)
settings
settings?: RuleSettingsInit;The rules it changes, as data (GameBuilder.settings)
units
units?: UnitTypeDef[];Unit type definitions the pack adds to the game's or puts in the place of those of the same id
upgrades
upgrades?: UpgradeDef[];Upgrade definitions the pack adds or replaces
version
version: string;major.minor.patch