static int _m_OnDrawGizmos(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOObstacle gen_to_be_invoked = (Pathfinding.RVO.RVOObstacle)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { gen_to_be_invoked.OnDrawGizmos( ); return(0); } if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool _selected = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.OnDrawGizmos(_selected); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to Pathfinding.RVO.RVOObstacle.OnDrawGizmos!")); }
static int _g_get_layer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOObstacle gen_to_be_invoked = (Pathfinding.RVO.RVOObstacle)translator.FastGetCSObj(L, 1); translator.PushPathfindingRVORVOLayer(L, gen_to_be_invoked.layer); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_layer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOObstacle gen_to_be_invoked = (Pathfinding.RVO.RVOObstacle)translator.FastGetCSObj(L, 1); Pathfinding.RVO.RVOLayer gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.layer = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _m_Update(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.RVOObstacle gen_to_be_invoked = (Pathfinding.RVO.RVOObstacle)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Update( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }