mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-14 09:47:24 +07:00
Mod event support
This commit is contained in:
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user