Static variables

@:value(null)staticcurrentModFolder:String = null

Current mod folder. Will affect Paths.

@:value([])staticloadedMods:Map<String, AssetLibrary> = []

Map all loaded mods' folder libraries.

@:value("./mods/")staticmodsPath:String = "./mods/"

Path to the mods folder.

Static methods

staticinit():Void

Initialises mods folder by adding callbacks and such.

@:value({ force : false })staticloadLibraryFromFolder(libName:String, folder:String, force:Bool = false):AssetLibrary

@:value({ force : false })staticloadLibraryFromZip(libName:String, zipPath:String, force:Bool = false):AssetLibrary

@:value({ force : false })staticloadMod(mod:String, force:Bool = false):AssetLibrary

Loads a mod with the specified name.

Parameters:

modName

Name of the mod

force

Whenever the mod should be reloaded if it has already been loaded

@:value({ force : false })staticprepareLibrary(libName:String, force:Bool = false):AssetLibrary

@:value({ force : false })staticprepareModLibrary(libName:String, lib:ModsAssetLibrary, force:Bool = false):AssetLibrary

staticswitchMod(mod:String):Void

Switches mod - unloads all the other mods, then load this one.

Parameters:

null

libName

staticunloadMod(mod:String):Void