First iteration of stable custom characters, plus some other neat changes.

This commit is contained in:
Eric Myllyoja 2022-03-21 00:19:05 -04:00
parent 1a85b4a1ce
commit a7d338becb
36 changed files with 1744 additions and 812 deletions

View file

@ -47,6 +47,16 @@ class ModuleHandler
trace("[MODULEHANDLER] Module cache loaded.");
}
public static function buildModuleCallbacks():Void
{
FlxG.signals.postStateSwitch.add(onStateSwitchComplete);
}
static function onStateSwitchComplete():Void
{
callEvent(new StateChangeScriptEvent(ScriptEvent.STATE_CHANGE_END, FlxG.state, true));
}
static function addToModuleCache(module:Module):Void
{
moduleCache.set(module.moduleId, module);