static int _m_PointToLocal(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Logic.Controller.Entity __cl_gen_to_be_invoked = (Logic.Controller.Entity)translator.FastGetCSObj(L, 1); { Core.Math.Vec3 point; translator.Get(L, 2, out point); Core.Math.Vec3 __cl_gen_ret = __cl_gen_to_be_invoked.PointToLocal(point); translator.PushCoreMathVec3(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_DistanceSqrtTo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Logic.Controller.Entity __cl_gen_to_be_invoked = (Logic.Controller.Entity)translator.FastGetCSObj(L, 1); { Logic.Controller.Entity target = (Logic.Controller.Entity)translator.GetObject(L, 2, typeof(Logic.Controller.Entity)); float __cl_gen_ret = __cl_gen_to_be_invoked.DistanceSqrtTo(target); LuaAPI.lua_pushnumber(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }