static int _m_GetHeuristic(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.EuclideanEmbedding gen_to_be_invoked = (PF.EuclideanEmbedding)translator.FastGetCSObj(L, 1); { int _nodeIndex1 = LuaAPI.xlua_tointeger(L, 2); int _nodeIndex2 = LuaAPI.xlua_tointeger(L, 3); uint gen_ret = gen_to_be_invoked.GetHeuristic(_nodeIndex1, _nodeIndex2); LuaAPI.xlua_pushuint(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _s_set_dirty(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.EuclideanEmbedding gen_to_be_invoked = (PF.EuclideanEmbedding)translator.FastGetCSObj(L, 1); gen_to_be_invoked.dirty = 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_pivots(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.EuclideanEmbedding gen_to_be_invoked = (PF.EuclideanEmbedding)translator.FastGetCSObj(L, 1); gen_to_be_invoked.pivots = (PF.GraphNode[])translator.GetObject(L, 2, typeof(PF.GraphNode[])); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_pivots(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.EuclideanEmbedding gen_to_be_invoked = (PF.EuclideanEmbedding)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.pivots); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_spreadOutCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.EuclideanEmbedding gen_to_be_invoked = (PF.EuclideanEmbedding)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.spreadOutCount); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_mode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.EuclideanEmbedding gen_to_be_invoked = (PF.EuclideanEmbedding)translator.FastGetCSObj(L, 1); PF.HeuristicOptimizationMode gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.mode = 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) { PF.EuclideanEmbedding gen_ret = new PF.EuclideanEmbedding(); 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.EuclideanEmbedding constructor!")); }
static int _m_OnDrawGizmos(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.EuclideanEmbedding>(L, 1)) { PF.EuclideanEmbedding _embedding = (PF.EuclideanEmbedding)translator.GetObject(L, 1, typeof(PF.EuclideanEmbedding)); Pathfinding.UnityHelper.OnDrawGizmos( _embedding); return(0); } if (gen_param_count == 3 && translator.Assignable <PF.NavmeshBase>(L, 1) && translator.Assignable <Pathfinding.Util.RetainedGizmos>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { PF.NavmeshBase _navmeshBase = (PF.NavmeshBase)translator.GetObject(L, 1, typeof(PF.NavmeshBase)); Pathfinding.Util.RetainedGizmos _gizmos = (Pathfinding.Util.RetainedGizmos)translator.GetObject(L, 2, typeof(Pathfinding.Util.RetainedGizmos)); bool _drawNodes = LuaAPI.lua_toboolean(L, 3); Pathfinding.UnityHelper.OnDrawGizmos( _navmeshBase, _gizmos, _drawNodes); 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.UnityHelper.OnDrawGizmos!")); }
static int _m_OnDrawGizmos(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.EuclideanEmbedding gen_to_be_invoked = (PF.EuclideanEmbedding)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OnDrawGizmos( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }