static int _s_set_drawObstacles(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOSimulator gen_to_be_invoked = (Pathfinding.RVO.RVOSimulator)translator.FastGetCSObj(L, 1); gen_to_be_invoked.drawObstacles = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_symmetryBreakingBias(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOSimulator gen_to_be_invoked = (Pathfinding.RVO.RVOSimulator)translator.FastGetCSObj(L, 1); gen_to_be_invoked.symmetryBreakingBias = (float)LuaAPI.lua_tonumber(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_movementPlane(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOSimulator gen_to_be_invoked = (Pathfinding.RVO.RVOSimulator)translator.FastGetCSObj(L, 1); translator.PushPathfindingRVOMovementPlane(L, gen_to_be_invoked.movementPlane); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_doubleBuffering(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOSimulator gen_to_be_invoked = (Pathfinding.RVO.RVOSimulator)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.doubleBuffering); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_workerThreads(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOSimulator gen_to_be_invoked = (Pathfinding.RVO.RVOSimulator)translator.FastGetCSObj(L, 1); translator.PushPFThreadCount(L, gen_to_be_invoked.workerThreads); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_movementPlane(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOSimulator gen_to_be_invoked = (Pathfinding.RVO.RVOSimulator)translator.FastGetCSObj(L, 1); Pathfinding.RVO.MovementPlane gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.movementPlane = 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.RVOSimulator gen_ret = new Pathfinding.RVO.RVOSimulator(); 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.RVOSimulator constructor!")); }
static int _m_GetSimulator(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOSimulator gen_to_be_invoked = (Pathfinding.RVO.RVOSimulator)translator.FastGetCSObj(L, 1); { Pathfinding.RVO.Simulator gen_ret = gen_to_be_invoked.GetSimulator( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }