Static variables

@:value(null)staticcurrentModFolder:String = null

Current mod folder. Will affect Paths.

@:value(null)staticlastFolderEditTime:Date = null

Last time the folder was modified.

@:value([])staticloadedMods:Array<String> = []

Array of all loaded mods' folder names.

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

Path to the mods folder.

Static methods

@:value({ addRoot : false, prefix : "" })staticgetAssetFiles(assets:Array<Dynamic>, rootPath:String, path:String, libraryName:String, prefix:String = "", addRoot:Bool = false):Void

Gets all assets in folders and put them in the assets array.

Parameters:

assets

Array of assets

rootPath

Root path

path

Path inside of the rootPath (ex: root path/path/path2/)

libraryName

Name of the library (ex: mods/my mod/)

prefix

Prefix for the asset names (ex: assets/mods/my mod/)

addRoot

Whenever the root should be added to the paths. Defaults to false

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 })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