Mindustry/core/assets/scripts/global.js

90 lines
3.5 KiB
JavaScript
Raw Normal View History

2019-11-28 01:51:07 +07:00
//Generated class. Do not modify.
2019-12-01 05:45:02 +07:00
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-01 05:45:02 +07:00
2020-02-12 05:50:16 +07:00
var scriptName = "base.js"
var modName = "none"
const print = text => log(scriptName, text);
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-04 05:16:23 +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}
2019-12-09 10:50:54 +07:00
const boolf = method => new Boolf(){get: method}
const boolp = method => new Boolp(){get: method}
const floatf = method => new Floatf(){get: method}
const floatp = method => new Floatp(){get: method}
2019-12-09 10:50:54 +07:00
const cons = method => new Cons(){get: method}
2019-12-16 01:56:01 +07:00
const prov = method => new Prov(){get: method}
const func = method => new Func(){get: method}
2019-12-09 06:34:23 +07:00
const newEffect = (lifetime, renderer) => new Effects.Effect(lifetime, new Effects.EffectRenderer({render: renderer}))
2019-12-30 05:56:10 +07:00
Call = Packages.mindustry.gen.Call
2019-12-27 11:00:26 +07:00
const Calls = Call //backwards compat
2020-02-12 05:50:16 +07:00
2019-12-30 00:24:51 +07:00
importPackage(Packages.arc.math.geom)
2020-02-12 05:50:16 +07:00
importPackage(Packages.mindustry.graphics)
importPackage(Packages.mindustry.ui.dialogs)
importPackage(Packages.mindustry.world.blocks.liquid)
importPackage(Packages.mindustry.world.blocks)
2019-12-26 00:47:14 +07:00
importPackage(Packages.arc.scene.event)
2020-02-12 05:50:16 +07:00
importPackage(Packages.arc.scene.actions)
importPackage(Packages.mindustry.gen)
2019-12-26 00:47:14 +07:00
importPackage(Packages.arc.struct)
2020-02-12 05:50:16 +07:00
importPackage(Packages.mindustry.world.blocks.defense.turrets)
importPackage(Packages.mindustry.game)
importPackage(Packages.arc.graphics)
importPackage(Packages.mindustry.ui.fragments)
importPackage(Packages.mindustry.ui)
importPackage(Packages.mindustry.world.blocks.power)
2019-12-26 00:47:14 +07:00
importPackage(Packages.mindustry.entities.traits)
2020-02-12 05:50:16 +07:00
importPackage(Packages.mindustry.entities.effect)
importPackage(Packages.arc.math)
importPackage(Packages.arc.scene.ui)
importPackage(Packages.mindustry.world.blocks.defense)
importPackage(Packages.mindustry.ctype)
2019-12-26 00:47:14 +07:00
importPackage(Packages.mindustry.entities.type)
2020-02-12 05:50:16 +07:00
importPackage(Packages.mindustry.world.meta)
importPackage(Packages.arc.func)
importPackage(Packages.mindustry.editor)
2019-12-26 00:47:14 +07:00
importPackage(Packages.mindustry.entities.units)
importPackage(Packages.mindustry.maps.filters)
importPackage(Packages.mindustry.world)
2020-02-12 05:50:16 +07:00
importPackage(Packages.arc.scene.utils)
importPackage(Packages.mindustry.maps.generators)
2019-12-26 00:47:14 +07:00
importPackage(Packages.mindustry.world.blocks.distribution)
2020-02-12 05:50:16 +07:00
importPackage(Packages.mindustry.entities.bullet)
importPackage(Packages.mindustry.content)
importPackage(Packages.mindustry.world.meta.values)
2019-12-26 00:47:14 +07:00
importPackage(Packages.mindustry.world.blocks.production)
2020-02-12 05:50:16 +07:00
importPackage(Packages.arc)
2019-12-26 00:47:14 +07:00
importPackage(Packages.mindustry.world.blocks.units)
2020-02-12 05:50:16 +07:00
importPackage(Packages.mindustry.core)
2019-12-26 00:47:14 +07:00
importPackage(Packages.mindustry.world.consumers)
2020-02-12 05:50:16 +07:00
importPackage(Packages.mindustry.entities.type.base)
importPackage(Packages.arc.scene.ui.layout)
importPackage(Packages.mindustry.type)
importPackage(Packages.mindustry.input)
importPackage(Packages.mindustry.entities)
importPackage(Packages.arc.scene.style)
importPackage(Packages.mindustry.world.blocks.sandbox)
importPackage(Packages.mindustry.ui.layout)
importPackage(Packages.mindustry.maps.zonegen)
importPackage(Packages.arc.graphics.g2d)
importPackage(Packages.mindustry.ai)
2019-12-26 00:47:14 +07:00
importPackage(Packages.mindustry.world.modules)
2020-02-12 05:50:16 +07:00
importPackage(Packages.mindustry.world.blocks.storage)
importPackage(Packages.arc.scene)
importPackage(Packages.mindustry.maps)
importPackage(Packages.mindustry.world.blocks.logic)
importPackage(Packages.arc.util)
2019-12-26 00:47:14 +07:00
importPackage(Packages.mindustry.world.producers)
2020-02-12 05:50:16 +07:00
importPackage(Packages.mindustry)