Static variables
View in GitHub
staticuseLibFile:Bool = true
If accessing a file as assets/data/global/LIB_mymod.hx should redirect to mymod:assets/data/global.hx
Static methods
View in GitHub
staticloadLibraryFromFolder(libName:String, folder:String, force:Bool = false, ?modName:String):AssetLibrary
View in GitHub
staticloadLibraryFromZip(libName:String, zipPath:String, force:Bool = false, ?modName:String):AssetLibrary
View in GitHub
staticloadModLib(path:String, force:Bool = false, ?modName:String):AssetLibrary
Loads a mod library from the specified path. Supports folders and zips.
Parameters:
modName | Name of the mod |
---|---|
force | Whenever the mod should be reloaded if it has already been loaded |
View in GitHub
staticprepareModLibrary(libName:String, lib:IModsAssetLibrary, force:Bool = false):AssetLibrary
View in GitHub
staticswitchMod(mod:String):Void
Switches mod - unloads all the other mods, then load this one.
Parameters:
null | libName |
---|