static int _s_set_maxNearestNodeDistance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.AStarConfig gen_to_be_invoked = (PF.AStarConfig)translator.FastGetCSObj(L, 1); gen_to_be_invoked.maxNearestNodeDistance = (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_pathProcessor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.AStarConfig gen_to_be_invoked = (PF.AStarConfig)translator.FastGetCSObj(L, 1); gen_to_be_invoked.pathProcessor = (PF.PathProcessor)translator.GetObject(L, 2, typeof(PF.PathProcessor)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_fullGetNearestSearch(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.AStarConfig gen_to_be_invoked = (PF.AStarConfig)translator.FastGetCSObj(L, 1); gen_to_be_invoked.fullGetNearestSearch = 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_debugPathID(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.AStarConfig gen_to_be_invoked = (PF.AStarConfig)translator.FastGetCSObj(L, 1); gen_to_be_invoked.debugPathID = (ushort)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_debugPathData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.AStarConfig gen_to_be_invoked = (PF.AStarConfig)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.debugPathData); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_maxFrameTime(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.AStarConfig gen_to_be_invoked = (PF.AStarConfig)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxFrameTime); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_prioritizeGraphs(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.AStarConfig gen_to_be_invoked = (PF.AStarConfig)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.prioritizeGraphs); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_logPathResults(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.AStarConfig gen_to_be_invoked = (PF.AStarConfig)translator.FastGetCSObj(L, 1); PF.PathLog gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.logPathResults = 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.AStarConfig gen_ret = new PF.AStarConfig(); 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.AStarConfig constructor!")); }