softcoded multithreading

This commit is contained in:
Yoshman29
2023-01-12 00:46:25 +01:00
parent ef5bd52612
commit 114dcfcd70
6 changed files with 113 additions and 7 deletions
+15
View File
@@ -0,0 +1,15 @@
package funkin.utils;
import funkin.scripting.Script;
import funkin.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);
}
}