Mod event support

This commit is contained in:
Anuken
2020-05-04 17:57:08 -04:00
parent 8876c673f7
commit a4bd1dcc6d
4 changed files with 81 additions and 54 deletions

View File

@ -2,6 +2,10 @@ const log = function(context, obj){
Vars.mods.getScripts().log(context, String(obj))
}
const onEvent = function(event, handler){
Vars.mods.getScripts().onEvent(EventType[event], handler)
}
var scriptName = "base.js"
var modName = "none"