Global

this.game.includeMod(modName, callFunction = null, args = [])

Includes another mod of the same game. modName must match the directory name of the mod. You may call a specific function with arguments immediately, or you can interest with the object class as you desire through this.game.mods[modName] once it executes.

For example, the following 3 blocks of code are equivalent:

  1. this.game.includeMod('test', 'patch');
  2. this.game.includeMod('test'); this.game.mods['test'].patch();
  3. let testMod = this.game.includeMod('test'); testMod.patch();