static int _m_PausePathfinding(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.PathProcessor gen_to_be_invoked = (PF.PathProcessor)translator.FastGetCSObj(L, 1); { bool _block = LuaAPI.lua_toboolean(L, 2); PF.PathProcessor.GraphUpdateLock gen_ret = gen_to_be_invoked.PausePathfinding( _block); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <PF.PathProcessor>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { PF.PathProcessor _pathProcessor = (PF.PathProcessor)translator.GetObject(L, 2, typeof(PF.PathProcessor)); bool _block = LuaAPI.lua_toboolean(L, 3); PF.PathProcessor.GraphUpdateLock gen_ret = new PF.PathProcessor.GraphUpdateLock(_pathProcessor, _block); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { translator.Push(L, default(PF.PathProcessor.GraphUpdateLock)); 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.PathProcessor.GraphUpdateLock constructor!")); }
static int _e_OnQueueUnblocked(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); PF.PathProcessor gen_to_be_invoked = (PF.PathProcessor)translator.FastGetCSObj(L, 1); System.Action gen_delegate = translator.GetDelegate <System.Action>(L, 3); if (gen_delegate == null) { return(LuaAPI.luaL_error(L, "#3 need System.Action!")); } if (gen_param_count == 3) { if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { gen_to_be_invoked.OnQueueUnblocked += gen_delegate; return(0); } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.OnQueueUnblocked -= gen_delegate; return(0); } } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } LuaAPI.luaL_error(L, "invalid arguments to PF.PathProcessor.OnQueueUnblocked!"); return(0); }
static int _g_get_IsUsingMultithreading(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.PathProcessor gen_to_be_invoked = (PF.PathProcessor)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsUsingMultithreading); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _m_AbortThreads(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.PathProcessor gen_to_be_invoked = (PF.PathProcessor)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.AbortThreads( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_CalculatePaths(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.PathProcessor gen_to_be_invoked = (PF.PathProcessor)translator.FastGetCSObj(L, 1); { System.Collections.IEnumerator gen_ret = gen_to_be_invoked.CalculatePaths( ); translator.PushAny(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetNewNodeIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.PathProcessor gen_to_be_invoked = (PF.PathProcessor)translator.FastGetCSObj(L, 1); { int gen_ret = gen_to_be_invoked.GetNewNodeIndex( ); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _e_remove_OnPathPostSearch(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); PF.PathProcessor gen_to_be_invoked = (PF.PathProcessor)translator.FastGetCSObj(L, 1); System.Action <PF.Path> gen_delegate = translator.GetDelegate <System.Action <PF.Path> >(L, 2); if (gen_delegate == null) { return(LuaAPI.luaL_error(L, "#2 need System.Action<PF.Path>!")); } if (gen_param_count == 2) { gen_to_be_invoked.OnPathPostSearch -= gen_delegate; return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } LuaAPI.luaL_error(L, "invalid arguments to PF.PathProcessor.OnPathPostSearch!"); return(0); }
static int _m_DestroyNode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.PathProcessor gen_to_be_invoked = (PF.PathProcessor)translator.FastGetCSObj(L, 1); { PF.GraphNode _node = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode)); gen_to_be_invoked.DestroyNode(_node); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }