Added functions for adding keywords to global script running
++ addGlobalObject(String,Object)
++ removeGlobalObject(String)
++ getEngineObjects()
This commit is contained in:
Luis C.M committed 2022-12-14 17:53:57 -06:00
1 parent 718a867411
commit 7a715ef308
4 files changed
+20 -1

No files matched your search

@@ -155,6 +155,9 @@ public class ScriptContainer {
}
engine.put("API", NpcAPI.Instance());
for (Map.Entry<String,Object> engineObjects : NpcAPI.engineObjects.entrySet()) {
engine.put(engineObjects.getKey(),engineObjects.getValue());
}
Current = this;
CurrentType = type;