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
+3 -3
View File
@@ -5,8 +5,8 @@ import openfl.Assets;
import hscript.*;
class HScript extends Script {
var interp:Interp;
var expr:Expr;
public var interp:Interp;
public var expr:Expr;
public override function onCreate(path:String) {
super.onCreate(path);
@@ -72,7 +72,7 @@ class HScript extends Script {
var oldParent = interp.scriptObject;
onCreate(path);
for(k=>e in Script.getDefaultVariables())
for(k=>e in Script.getDefaultVariables(this))
set(k, e);
load();