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:
this.game.includeMod('test', 'patch');
this.game.includeMod('test'); this.game.mods['test'].patch();
let testMod = this.game.includeMod('test'); testMod.patch();