Implemented animation events and made some event classes abstract.

This commit is contained in:
Luis C.M committed 2024-03-24 17:03:58 -05:00
1 parent a564bcdb0e
commit 61781710f1
18 files changed
+254 -46

No files matched your search

@@ -236,13 +236,14 @@ public class DataScript implements INpcScriptHandler {
@Override
public void callScript(EnumScriptType type, Event event) {
ScriptController.Instance.globalNpcScripts.callScript(type, event);
callScript(type, event, "$$IGNORED$$", null);
}
@Override
public void callScript(String hookName, Event event) {
try {
EnumScriptType enumScriptType = EnumScriptType.valueOf(hookName);
EnumScriptType enumScriptType = EnumScriptType.valueOfIgnoreCase(hookName);
this.callScript(enumScriptType, event);
} catch (IllegalArgumentException ignored) {}
}
@@ -305,4 +306,4 @@ public class DataScript implements INpcScriptHandler {
public Collection<ScriptContainer> getNPCScripts() {
return this.scripts.values();
}
}
}