15 lines
489 B
Haxe
15 lines
489 B
Haxe
package funkin.backend.utils;
|
|
|
|
import funkin.backend.scripting.MultiThreadedScript;
|
|
import funkin.backend.scripting.Script;
|
|
|
|
final 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);
|
|
}
|
|
} |