Skip to content

composeGame beta ​

Function of @v12-engine/engine

ts
export declare function composeGame(base: Rules, mods: ModDef[]): Rules;

A game with mods on it: a new Rules, which createWorld takes like any other. Its id names the game and the mods (melee+goldRush), and mods lists them with their versions. Mods are applied after the ones they require, otherwise in the order given. Neither the game nor the mods are changed