package funkin.backend.utils; import funkin.backend.scripting.Script; import funkin.backend.scripting.MultiThreadedScript; class EngineUtil { /** * Starts a new multithreaded script. * This script will share all the variables with the current one, which means already existing callbacks will be replaced by new ones on conflict. * @param path */ public static function startMultithreadedScript(path:String) { return new MultiThreadedScript(path, Script.curScript); } }