add floatf/p and func to global.js (#1633)

This commit is contained in:
DeltaNedas
2020-02-24 20:06:33 +00:00
committed by GitHub
parent 251877f561
commit 0c01554a6b

View File

@ -20,8 +20,11 @@ const extend = function(classType, params){
const run = method => new java.lang.Runnable(){run: method}
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}
const cons = method => new Cons(){get: method}
const prov = method => new Prov(){get: method}
const func = method => new Func(){get: method}
const newEffect = (lifetime, renderer) => new Effects.Effect(lifetime, new Effects.EffectRenderer({render: renderer}))
Call = Packages.mindustry.gen.Call
const Calls = Call //backwards compat