mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-19 16:57:15 +07:00
24 lines
658 B
JavaScript
Executable File
24 lines
658 B
JavaScript
Executable File
const log = function(context, obj){
|
|
Vars.mods.getScripts().log(context, String(obj))
|
|
}
|
|
|
|
const onEvent = function(event, handler){
|
|
Vars.mods.getScripts().onEvent(event, handler)
|
|
}
|
|
|
|
var scriptName = "base.js"
|
|
var modName = "none"
|
|
|
|
const print = text => log(modName + "/" + scriptName, text);
|
|
|
|
const extendContent = function(classType, name, params){
|
|
return new JavaAdapter(classType, params, name)
|
|
}
|
|
|
|
const extend = function(classType, params){
|
|
return new JavaAdapter(classType, params)
|
|
}
|
|
|
|
const newEffect = (lifetime, renderer) => new Effects.Effect(lifetime, new Effects.EffectRenderer({render: renderer}))
|
|
Call = Packages.mindustry.gen.Call
|