mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-01 18:50:27 +03: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