static int _m_UpdateRecursiveG(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); { PF.Path _path = (PF.Path)translator.GetObject(L, 2, typeof(PF.Path)); PF.PathNode _pathNode = (PF.PathNode)translator.GetObject(L, 3, typeof(PF.PathNode)); PF.PathHandler _handler = (PF.PathHandler)translator.GetObject(L, 4, typeof(PF.PathHandler)); gen_to_be_invoked.UpdateRecursiveG(_path, _pathNode, _handler); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ContainsPointInGraphSpace(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); { PF.Int3 _point; translator.Get(L, 2, out _point); bool gen_ret = gen_to_be_invoked.ContainsPointInGraphSpace( _point); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetVertex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); { int _i = LuaAPI.xlua_tointeger(L, 2); PF.Int3 gen_ret = gen_to_be_invoked.GetVertex( _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_ContainsConnection(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); { PF.GraphNode _node = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode)); bool gen_ret = gen_to_be_invoked.ContainsConnection( _node); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_FloodFill(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); { System.Collections.Generic.Stack <PF.GraphNode> _stack = (System.Collections.Generic.Stack <PF.GraphNode>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Stack <PF.GraphNode>)); uint _region = LuaAPI.xlua_touint(L, 3); gen_to_be_invoked.FloodFill( _stack, _region); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ClosestPointOnNodeXZ(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 _p; translator.Get(L, 2, out _p); UnityEngine.Vector3 gen_ret = gen_to_be_invoked.ClosestPointOnNodeXZ( _p); translator.PushUnityEngineVector3(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _s_set_connections(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); gen_to_be_invoked.connections = (PF.Connection[])translator.GetObject(L, 2, typeof(PF.Connection[])); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_connections(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.connections); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _m_AddConnection(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && translator.Assignable <PF.GraphNode>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { PF.GraphNode _node = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode)); uint _cost = LuaAPI.xlua_touint(L, 3); gen_to_be_invoked.AddConnection( _node, _cost); return(0); } if (gen_param_count == 4 && translator.Assignable <PF.GraphNode>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { PF.GraphNode _node = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode)); uint _cost = LuaAPI.xlua_touint(L, 3); int _shapeEdge = LuaAPI.xlua_tointeger(L, 4); gen_to_be_invoked.AddConnection( _node, _cost, _shapeEdge); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to PF.MeshNode.AddConnection!")); }
static int _m_ContainsPoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <PF.Int3>(L, 2)) { PF.Int3 _point; translator.Get(L, 2, out _point); bool gen_ret = gen_to_be_invoked.ContainsPoint( _point); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 2)) { UnityEngine.Vector3 _point; translator.Get(L, 2, out _point); bool gen_ret = gen_to_be_invoked.ContainsPoint( _point); 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 PF.MeshNode.ContainsPoint!")); }
static int _m_GetGizmoHashCode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); { int gen_ret = gen_to_be_invoked.GetGizmoHashCode( ); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_DeserializeReferences(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); { PF.GraphSerializationContext _ctx = (PF.GraphSerializationContext)translator.GetObject(L, 2, typeof(PF.GraphSerializationContext)); gen_to_be_invoked.DeserializeReferences(_ctx); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetConnections(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); { System.Action <PF.GraphNode> _action = translator.GetDelegate <System.Action <PF.GraphNode> >(L, 2); gen_to_be_invoked.GetConnections(_action); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ClearConnections(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.MeshNode gen_to_be_invoked = (PF.MeshNode)translator.FastGetCSObj(L, 1); { bool _alsoReverse = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.ClearConnections(_alsoReverse); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }