static int _m_SetTarget(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.IAgent gen_to_be_invoked = (Pathfinding.RVO.IAgent)translator.FastGetCSObj(L, 1); { UnityEngine.Vector2 _targetPoint; translator.Get(L, 2, out _targetPoint); float _desiredSpeed = (float)LuaAPI.lua_tonumber(L, 3); float _maxSpeed = (float)LuaAPI.lua_tonumber(L, 4); gen_to_be_invoked.SetTarget( _targetPoint, _desiredSpeed, _maxSpeed); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _s_set_PreCalculationCallback(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.IAgent gen_to_be_invoked = (Pathfinding.RVO.IAgent)translator.FastGetCSObj(L, 1); gen_to_be_invoked.PreCalculationCallback = translator.GetDelegate <System.Action>(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_Priority(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.IAgent gen_to_be_invoked = (Pathfinding.RVO.IAgent)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Priority = (float)LuaAPI.lua_tonumber(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_MaxNeighbours(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.IAgent gen_to_be_invoked = (Pathfinding.RVO.IAgent)translator.FastGetCSObj(L, 1); gen_to_be_invoked.MaxNeighbours = LuaAPI.xlua_tointeger(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_DebugDraw(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.IAgent gen_to_be_invoked = (Pathfinding.RVO.IAgent)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.DebugDraw); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_CollidesWith(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.IAgent gen_to_be_invoked = (Pathfinding.RVO.IAgent)translator.FastGetCSObj(L, 1); translator.PushPathfindingRVORVOLayer(L, gen_to_be_invoked.CollidesWith); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_CalculatedTargetPoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.IAgent gen_to_be_invoked = (Pathfinding.RVO.IAgent)translator.FastGetCSObj(L, 1); translator.PushUnityEngineVector2(L, gen_to_be_invoked.CalculatedTargetPoint); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_CollidesWith(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.IAgent gen_to_be_invoked = (Pathfinding.RVO.IAgent)translator.FastGetCSObj(L, 1); Pathfinding.RVO.RVOLayer gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.CollidesWith = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _m_AddAgent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.Simulator gen_to_be_invoked = (Pathfinding.RVO.Simulator)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <Pathfinding.RVO.IAgent>(L, 2)) { Pathfinding.RVO.IAgent _agent = (Pathfinding.RVO.IAgent)translator.GetObject(L, 2, typeof(Pathfinding.RVO.IAgent)); Pathfinding.RVO.IAgent gen_ret = gen_to_be_invoked.AddAgent( _agent); translator.PushAny(L, gen_ret); return(1); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector2>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.Vector2 _position; translator.Get(L, 2, out _position); float _elevationCoordinate = (float)LuaAPI.lua_tonumber(L, 3); Pathfinding.RVO.IAgent gen_ret = gen_to_be_invoked.AddAgent( _position, _elevationCoordinate); translator.PushAny(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.Simulator.AddAgent!")); }
static int _m_RemoveAgent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.Simulator gen_to_be_invoked = (Pathfinding.RVO.Simulator)translator.FastGetCSObj(L, 1); { Pathfinding.RVO.IAgent _agent = (Pathfinding.RVO.IAgent)translator.GetObject(L, 2, typeof(Pathfinding.RVO.IAgent)); gen_to_be_invoked.RemoveAgent(_agent); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ForceSetVelocity(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.RVO.IAgent gen_to_be_invoked = (Pathfinding.RVO.IAgent)translator.FastGetCSObj(L, 1); { UnityEngine.Vector2 _velocity; translator.Get(L, 2, out _velocity); gen_to_be_invoked.ForceSetVelocity(_velocity); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }