static int _m_InternalUnblock(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.BlockManager gen_to_be_invoked = (Pathfinding.BlockManager)translator.FastGetCSObj(L, 1); { PF.GraphNode _node = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode)); Pathfinding.SingleNodeBlocker _blocker = (Pathfinding.SingleNodeBlocker)translator.GetObject(L, 3, typeof(Pathfinding.SingleNodeBlocker)); gen_to_be_invoked.InternalUnblock( _node, _blocker); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _s_set_manager(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.SingleNodeBlocker gen_to_be_invoked = (Pathfinding.SingleNodeBlocker)translator.FastGetCSObj(L, 1); gen_to_be_invoked.manager = (Pathfinding.BlockManager)translator.GetObject(L, 2, typeof(Pathfinding.BlockManager)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_lastBlocked(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.SingleNodeBlocker gen_to_be_invoked = (Pathfinding.SingleNodeBlocker)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.lastBlocked); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { Pathfinding.SingleNodeBlocker gen_ret = new Pathfinding.SingleNodeBlocker(); 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 Pathfinding.SingleNodeBlocker constructor!")); }
static int _m_BlockAtCurrentPosition(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.SingleNodeBlocker gen_to_be_invoked = (Pathfinding.SingleNodeBlocker)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.BlockAtCurrentPosition( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_BlockAt(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.SingleNodeBlocker gen_to_be_invoked = (Pathfinding.SingleNodeBlocker)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 _position; translator.Get(L, 2, out _position); gen_to_be_invoked.BlockAt(_position); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }