static int _m_GetTileCoordinates(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.INavmeshHolder gen_to_be_invoked = (PF.INavmeshHolder)translator.FastGetCSObj(L, 1); { int _tileIndex = LuaAPI.xlua_tointeger(L, 2); int _x; int _z; gen_to_be_invoked.GetTileCoordinates(_tileIndex, out _x, out _z); LuaAPI.xlua_pushinteger(L, _x); LuaAPI.xlua_pushinteger(L, _z); return(2); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetVertexInGraphSpace(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.INavmeshHolder gen_to_be_invoked = (PF.INavmeshHolder)translator.FastGetCSObj(L, 1); { int _i = LuaAPI.xlua_tointeger(L, 2); PF.Int3 gen_ret = gen_to_be_invoked.GetVertexInGraphSpace( _i); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetNavmeshHolder_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { uint _graphIndex = LuaAPI.xlua_touint(L, 1); PF.INavmeshHolder gen_ret = PF.TriangleMeshNode.GetNavmeshHolder(_graphIndex); translator.PushAny(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetNavmeshHolder_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { int _graphIndex = LuaAPI.xlua_tointeger(L, 1); PF.INavmeshHolder _graph = (PF.INavmeshHolder)translator.GetObject(L, 2, typeof(PF.INavmeshHolder)); PF.TriangleMeshNode.SetNavmeshHolder(_graphIndex, _graph); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }