2019-12-08 02:10:39 +07:00
|
|
|
const log = function(context, obj){
|
|
|
|
Vars.mods.getScripts().log(context, obj ? String(obj) : "null")
|
2019-12-04 05:16:23 +07:00
|
|
|
}
|
|
|
|
|
2019-12-07 10:24:32 +07:00
|
|
|
const extendContent = function(classType, name, params){
|
2019-12-08 03:41:52 +07:00
|
|
|
return new JavaAdapter(classType, params, name)
|
2019-12-07 09:57:47 +07:00
|
|
|
}
|
2019-12-07 10:24:32 +07:00
|
|
|
|
|
|
|
const extend = function(classType, params){
|
|
|
|
return new JavaAdapter(classType, params)
|
2019-12-09 06:34:23 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
const run = method => new java.lang.Runnable(){run: method}
|
|
|
|
const newEffect = (lifetime, renderer) => new Effects.Effect(lifetime, new Effects.EffectRenderer({render: renderer}))
|
|
|
|
const Calls = Packages.io.anuke.mindustry.gen.Call
|