hot reloading (F5)

This commit is contained in:
Yoshman29
2022-11-02 02:23:45 +01:00
parent bf1e581479
commit dc03e378df
5 changed files with 32 additions and 1 deletions
+4
View File
@@ -43,6 +43,10 @@ class ScriptPack extends Script {
return null;
}
public override function reload() {
for(e in scripts) e.reload();
}
public override function set(val:String, value:Dynamic) {
for(e in scripts) e.set(val, value);
}