static int _m_FindGraphWhichInheritsFrom(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.AstarData gen_to_be_invoked = (Pathfinding.AstarData)translator.FastGetCSObj(L, 1); { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); PF.NavGraph gen_ret = gen_to_be_invoked.FindGraphWhichInheritsFrom( _type); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetGraphIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.AstarData gen_to_be_invoked = (Pathfinding.AstarData)translator.FastGetCSObj(L, 1); { PF.NavGraph _graph = (PF.NavGraph)translator.GetObject(L, 2, typeof(PF.NavGraph)); int gen_ret = gen_to_be_invoked.GetGraphIndex( _graph); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SuitableGraph(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NNConstraint gen_to_be_invoked = (PF.NNConstraint)translator.FastGetCSObj(L, 1); { int _graphIndex = LuaAPI.xlua_tointeger(L, 2); PF.NavGraph _graph = (PF.NavGraph)translator.GetObject(L, 3, typeof(PF.NavGraph)); bool gen_ret = gen_to_be_invoked.SuitableGraph( _graphIndex, _graph); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_FindGraph(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.AstarData gen_to_be_invoked = (Pathfinding.AstarData)translator.FastGetCSObj(L, 1); { System.Func <PF.NavGraph, bool> _predicate = translator.GetDelegate <System.Func <PF.NavGraph, bool> >(L, 2); PF.NavGraph gen_ret = gen_to_be_invoked.FindGraph( _predicate); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetNearestForce(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavGraph gen_to_be_invoked = (PF.NavGraph)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 _position; translator.Get(L, 2, out _position); PF.NNConstraint _constraint = (PF.NNConstraint)translator.GetObject(L, 3, typeof(PF.NNConstraint)); PF.NNInfoInternal gen_ret = gen_to_be_invoked.GetNearestForce(_position, _constraint); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Serialize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.AstarSerializer gen_to_be_invoked = (PF.AstarSerializer)translator.FastGetCSObj(L, 1); { PF.NavGraph _graph = (PF.NavGraph)translator.GetObject(L, 2, typeof(PF.NavGraph)); byte[] gen_ret = gen_to_be_invoked.Serialize( _graph); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _s_set_infoScreenOpen(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavGraph gen_to_be_invoked = (PF.NavGraph)translator.FastGetCSObj(L, 1); gen_to_be_invoked.infoScreenOpen = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_drawGizmos(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavGraph gen_to_be_invoked = (PF.NavGraph)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.drawGizmos); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_guid(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavGraph gen_to_be_invoked = (PF.NavGraph)translator.FastGetCSObj(L, 1); PF.Guid gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.guid = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _m_GetNearest(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavGraph gen_to_be_invoked = (PF.NavGraph)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <PF.NNConstraint>(L, 3)) { UnityEngine.Vector3 _position; translator.Get(L, 2, out _position); PF.NNConstraint _constraint = (PF.NNConstraint)translator.GetObject(L, 3, typeof(PF.NNConstraint)); PF.NNInfoInternal gen_ret = gen_to_be_invoked.GetNearest( _position, _constraint); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 4 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <PF.NNConstraint>(L, 3) && translator.Assignable <PF.GraphNode>(L, 4)) { UnityEngine.Vector3 _position; translator.Get(L, 2, out _position); PF.NNConstraint _constraint = (PF.NNConstraint)translator.GetObject(L, 3, typeof(PF.NNConstraint)); PF.GraphNode _hint = (PF.GraphNode)translator.GetObject(L, 4, typeof(PF.GraphNode)); PF.NNInfoInternal gen_ret = gen_to_be_invoked.GetNearest( _position, _constraint, _hint); 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 PF.NavGraph.GetNearest!")); }
static int _m_GetGraph_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { PF.GraphNode _node = (PF.GraphNode)translator.GetObject(L, 1, typeof(PF.GraphNode)); PF.NavGraph gen_ret = Pathfinding.UnityHelper.GetGraph(_node); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetContours_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1 && translator.Assignable <PF.NavGraph>(L, 1)) { PF.NavGraph _graph = (PF.NavGraph)translator.GetObject(L, 1, typeof(PF.NavGraph)); System.Collections.Generic.List <UnityEngine.Vector3> gen_ret = Pathfinding.GraphUtilities.GetContours( _graph); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <PF.INavmesh>(L, 1) && translator.Assignable <System.Action <System.Collections.Generic.List <PF.Int3>, bool> >(L, 2)) { PF.INavmesh _navmesh = (PF.INavmesh)translator.GetObject(L, 1, typeof(PF.INavmesh)); System.Action <System.Collections.Generic.List <PF.Int3>, bool> _results = translator.GetDelegate <System.Action <System.Collections.Generic.List <PF.Int3>, bool> >(L, 2); Pathfinding.GraphUtilities.GetContours( _navmesh, _results); 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.GraphUtilities.GetContours!")); }
static int _m_CountNodes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavGraph gen_to_be_invoked = (PF.NavGraph)translator.FastGetCSObj(L, 1); { int gen_ret = gen_to_be_invoked.CountNodes( ); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetNodes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.NavGraph gen_to_be_invoked = (PF.NavGraph)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <System.Func <PF.GraphNode, bool> >(L, 2)) { System.Func <PF.GraphNode, bool> _action = translator.GetDelegate <System.Func <PF.GraphNode, bool> >(L, 2); gen_to_be_invoked.GetNodes( _action); return(0); } if (gen_param_count == 2 && translator.Assignable <System.Action <PF.GraphNode> >(L, 2)) { System.Action <PF.GraphNode> _action = translator.GetDelegate <System.Action <PF.GraphNode> >(L, 2); gen_to_be_invoked.GetNodes( _action); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to PF.NavGraph.GetNodes!")); }