From 0c01554a6b6717be92dd85833b885e0481145de6 Mon Sep 17 00:00:00 2001 From: DeltaNedas <39013340+DeltaNedas@users.noreply.github.com> Date: Mon, 24 Feb 2020 20:06:33 +0000 Subject: [PATCH] add floatf/p and func to global.js (#1633) --- core/assets/scripts/global.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/assets/scripts/global.js b/core/assets/scripts/global.js index fee9596705..4f11bd4fed 100755 --- a/core/assets/scripts/global.js +++ b/core/assets/scripts/global.js @@ -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