static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { Pathfinding.GraphUpdateObject gen_ret = new Pathfinding.GraphUpdateObject(); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <UnityEngine.Bounds>(L, 2)) { UnityEngine.Bounds _b; translator.Get(L, 2, out _b); Pathfinding.GraphUpdateObject gen_ret = new Pathfinding.GraphUpdateObject(_b); 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.GraphUpdateObject constructor!")); }
static int _s_set_shape(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.GraphUpdateObject gen_to_be_invoked = (Pathfinding.GraphUpdateObject)translator.FastGetCSObj(L, 1); gen_to_be_invoked.shape = (Pathfinding.GraphUpdateShape)translator.GetObject(L, 2, typeof(Pathfinding.GraphUpdateShape)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_trackChangedNodes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.GraphUpdateObject gen_to_be_invoked = (Pathfinding.GraphUpdateObject)translator.FastGetCSObj(L, 1); gen_to_be_invoked.trackChangedNodes = 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_changedNodes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.GraphUpdateObject gen_to_be_invoked = (Pathfinding.GraphUpdateObject)translator.FastGetCSObj(L, 1); gen_to_be_invoked.changedNodes = (System.Collections.Generic.List <PF.GraphNode>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <PF.GraphNode>)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_changedNodes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.GraphUpdateObject gen_to_be_invoked = (Pathfinding.GraphUpdateObject)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.changedNodes); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_setWalkability(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.GraphUpdateObject gen_to_be_invoked = (Pathfinding.GraphUpdateObject)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.setWalkability); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_bounds(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.GraphUpdateObject gen_to_be_invoked = (Pathfinding.GraphUpdateObject)translator.FastGetCSObj(L, 1); UnityEngine.Bounds gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.bounds = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _m_RevertFromBackup(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.GraphUpdateObject gen_to_be_invoked = (Pathfinding.GraphUpdateObject)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.RevertFromBackup( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Apply(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.GraphUpdateObject gen_to_be_invoked = (Pathfinding.GraphUpdateObject)translator.FastGetCSObj(L, 1); { PF.GraphNode _node = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode)); gen_to_be_invoked.Apply(_node); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_UpdateGraphsNoBlock_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && translator.Assignable <Pathfinding.GraphUpdateObject>(L, 1) && translator.Assignable <System.Collections.Generic.List <PF.GraphNode> >(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { Pathfinding.GraphUpdateObject _guo = (Pathfinding.GraphUpdateObject)translator.GetObject(L, 1, typeof(Pathfinding.GraphUpdateObject)); System.Collections.Generic.List <PF.GraphNode> _nodes = (System.Collections.Generic.List <PF.GraphNode>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <PF.GraphNode>)); bool _alwaysRevert = LuaAPI.lua_toboolean(L, 3); bool gen_ret = Pathfinding.GraphUpdateUtilities.UpdateGraphsNoBlock(_guo, _nodes, _alwaysRevert); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <Pathfinding.GraphUpdateObject>(L, 1) && translator.Assignable <System.Collections.Generic.List <PF.GraphNode> >(L, 2)) { Pathfinding.GraphUpdateObject _guo = (Pathfinding.GraphUpdateObject)translator.GetObject(L, 1, typeof(Pathfinding.GraphUpdateObject)); System.Collections.Generic.List <PF.GraphNode> _nodes = (System.Collections.Generic.List <PF.GraphNode>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <PF.GraphNode>)); bool gen_ret = Pathfinding.GraphUpdateUtilities.UpdateGraphsNoBlock(_guo, _nodes); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } if (gen_param_count == 4 && translator.Assignable <Pathfinding.GraphUpdateObject>(L, 1) && translator.Assignable <PF.GraphNode>(L, 2) && translator.Assignable <PF.GraphNode>(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) { Pathfinding.GraphUpdateObject _guo = (Pathfinding.GraphUpdateObject)translator.GetObject(L, 1, typeof(Pathfinding.GraphUpdateObject)); PF.GraphNode _node1 = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode)); PF.GraphNode _node2 = (PF.GraphNode)translator.GetObject(L, 3, typeof(PF.GraphNode)); bool _alwaysRevert = LuaAPI.lua_toboolean(L, 4); bool gen_ret = Pathfinding.GraphUpdateUtilities.UpdateGraphsNoBlock(_guo, _node1, _node2, _alwaysRevert); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } if (gen_param_count == 3 && translator.Assignable <Pathfinding.GraphUpdateObject>(L, 1) && translator.Assignable <PF.GraphNode>(L, 2) && translator.Assignable <PF.GraphNode>(L, 3)) { Pathfinding.GraphUpdateObject _guo = (Pathfinding.GraphUpdateObject)translator.GetObject(L, 1, typeof(Pathfinding.GraphUpdateObject)); PF.GraphNode _node1 = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode)); PF.GraphNode _node2 = (PF.GraphNode)translator.GetObject(L, 3, typeof(PF.GraphNode)); bool gen_ret = Pathfinding.GraphUpdateUtilities.UpdateGraphsNoBlock(_guo, _node1, _node2); LuaAPI.lua_pushboolean(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.GraphUpdateUtilities.UpdateGraphsNoBlock!")); }