class ModsFolder
package funkin.mods
Static variables
Static methods
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: |
libraryName | Name of the library (ex: |
prefix | Prefix for the asset names (ex: |
addRoot | Whenever the root should be added to the paths. Defaults to 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 |