static int _g_get_size(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOSquareObstacle gen_to_be_invoked = (Pathfinding.RVO.RVOSquareObstacle)translator.FastGetCSObj(L, 1); translator.PushUnityEngineVector2(L, gen_to_be_invoked.size); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_height(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOSquareObstacle gen_to_be_invoked = (Pathfinding.RVO.RVOSquareObstacle)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.height); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_center(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOSquareObstacle gen_to_be_invoked = (Pathfinding.RVO.RVOSquareObstacle)translator.FastGetCSObj(L, 1); UnityEngine.Vector2 gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.center = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { Pathfinding.RVO.RVOSquareObstacle gen_ret = new Pathfinding.RVO.RVOSquareObstacle(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to Pathfinding.RVO.RVOSquareObstacle constructor!")); }