static int _m_CreateNavmeshSurfaceVisualization(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    PF.NavmeshBase _navmeshBase = (PF.NavmeshBase)translator.GetObject(L, 1, typeof(PF.NavmeshBase));
                    PF.NavmeshTile _tile        = (PF.NavmeshTile)translator.GetObject(L, 2, typeof(PF.NavmeshTile));
                    Pathfinding.Util.GraphGizmoHelper _helper = (Pathfinding.Util.GraphGizmoHelper)translator.GetObject(L, 3, typeof(Pathfinding.Util.GraphGizmoHelper));

                    Pathfinding.UnityHelper.CreateNavmeshSurfaceVisualization(
                        _navmeshBase,
                        _tile,
                        _helper);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
示例#2
0
        static int _m_DrawWireTriangles(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.Util.GraphGizmoHelper gen_to_be_invoked = (Pathfinding.Util.GraphGizmoHelper)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Vector3[] _vertices = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[]));
                    UnityEngine.Color[]   _colors   = (UnityEngine.Color[])translator.GetObject(L, 3, typeof(UnityEngine.Color[]));
                    int _numTriangles = LuaAPI.xlua_tointeger(L, 4);

                    gen_to_be_invoked.DrawWireTriangles(
                        _vertices,
                        _colors,
                        _numTriangles);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
示例#3
0
        static int _m_Init(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.Util.GraphGizmoHelper gen_to_be_invoked = (Pathfinding.Util.GraphGizmoHelper)translator.FastGetCSObj(L, 1);



                {
                    Pathfinding.Util.RetainedGizmos.Hasher _hasher; translator.Get(L, 2, out _hasher);
                    Pathfinding.Util.RetainedGizmos        _gizmos = (Pathfinding.Util.RetainedGizmos)translator.GetObject(L, 3, typeof(Pathfinding.Util.RetainedGizmos));

                    gen_to_be_invoked.Init(
                        _hasher,
                        _gizmos);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
示例#4
0
        static int _m_DrawWireTriangle(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.Util.GraphGizmoHelper gen_to_be_invoked = (Pathfinding.Util.GraphGizmoHelper)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Vector3 _a; translator.Get(L, 2, out _a);
                    UnityEngine.Vector3 _b; translator.Get(L, 3, out _b);
                    UnityEngine.Vector3 _c; translator.Get(L, 4, out _c);
                    UnityEngine.Color   _color; translator.Get(L, 5, out _color);

                    gen_to_be_invoked.DrawWireTriangle(
                        _a,
                        _b,
                        _c,
                        _color);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
示例#5
0
        static int _m_NodeColor(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.Util.GraphGizmoHelper gen_to_be_invoked = (Pathfinding.Util.GraphGizmoHelper)translator.FastGetCSObj(L, 1);



                {
                    PF.GraphNode _node = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode));

                    UnityEngine.Color gen_ret = gen_to_be_invoked.NodeColor(
                        _node);
                    translator.PushUnityEngineColor(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
示例#6
0
        static int _m_GetGizmoHelper(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.Util.RetainedGizmos gen_to_be_invoked = (Pathfinding.Util.RetainedGizmos)translator.FastGetCSObj(L, 1);



                {
                    Pathfinding.Util.RetainedGizmos.Hasher _hasher; translator.Get(L, 2, out _hasher);

                    Pathfinding.Util.GraphGizmoHelper gen_ret = gen_to_be_invoked.GetGizmoHelper(
                        _hasher);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
示例#7
0
        static int _g_get_builder(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.Util.GraphGizmoHelper gen_to_be_invoked = (Pathfinding.Util.GraphGizmoHelper)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.builder);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
示例#8
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Pathfinding.Util.GraphGizmoHelper gen_ret = new Pathfinding.Util.GraphGizmoHelper();
                    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.Util.GraphGizmoHelper constructor!"));
        }
示例#9
0
        static int _m_Submit(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.Util.GraphGizmoHelper gen_to_be_invoked = (Pathfinding.Util.GraphGizmoHelper)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Submit(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_DrawConnections(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.Util.GraphGizmoHelper gen_to_be_invoked = (Pathfinding.Util.GraphGizmoHelper)translator.FastGetCSObj(L, 1);



                {
                    PF.GraphNode _node = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode));

                    gen_to_be_invoked.DrawConnections(_node);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }