Utility functions for loading and manipulating active modules.

Static methods

staticactivateModule(moduleId:String):Void

staticcallEvent(event:ScriptEvent):Void

staticinlinecallOnCreate():Void

staticclearModuleCache():Void

Clear the module cache, forcing all modules to call shutdown events.

staticdeactivateModule(moduleId:String):Void

staticgetModule(moduleId:String):Null<Module>

staticloadModuleCache():Void

Parses and preloads the game's stage data and scripts when the game starts.

If you want to force stages to be reloaded, you can just call this function again.