Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/mod/gui/modmod/modmod.js
/** | /** | ||||
* @file This GUI page displays all available mods and allows the player to enabled and launch a set of compatible mods. | * @file This GUI page displays all available mods and allows the player to enabled and launch a set of compatible mods. | ||||
*/ | */ | ||||
/** | /** | ||||
* A mod is defined by a mod.json file, for example | * A mod is defined by a mod.json file, for example | ||||
* { | * { | ||||
* "name": "0ad", | * "name": "0ad", | ||||
* "version": "0.0.23", | * "version": "0.0.24", | ||||
* "label": "0 A.D. - Empires Ascendant", | * "label": "0 A.D. - Empires Ascendant", | ||||
* "url": "https://wildfiregames.com/", | * "url": "https://wildfiregames.com/", | ||||
* "description": "A free, open-source, historical RTS game.", | * "description": "A free, open-source, historical RTS game.", | ||||
* "dependencies": [] | * "dependencies": [] | ||||
* } | * } | ||||
* | * | ||||
* Or: | * Or: | ||||
* { | * { | ||||
* "name": "mod2", | * "name": "mod2", | ||||
* "label": "Mod 2", | * "label": "Mod 2", | ||||
* "version": "1.1", | * "version": "1.1", | ||||
* "description": "", | * "description": "", | ||||
* "dependencies": ["0ad<=0.0.23", "rote"] | * "dependencies": ["0ad<=0.0.24", "rote"] | ||||
* } | * } | ||||
* | * | ||||
* A mod is identified by the directory name. | * A mod is identified by the directory name. | ||||
* A mod must define the "name", "version", "label", "description" and "dependencies" property. | * A mod must define the "name", "version", "label", "description" and "dependencies" property. | ||||
* The "url" property is optional. | * The "url" property is optional. | ||||
* | * | ||||
* The property "name" can consist alphanumeric characters, underscore and dash. | * The property "name" can consist alphanumeric characters, underscore and dash. | ||||
* The name is used for version comparison of mod dependencies. | * The name is used for version comparison of mod dependencies. | ||||
▲ Show 20 Lines • Show All 369 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator