示例#1
0
        static int _m_DeserializeGraphs(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.DeserializeGraphs(  );



                    return(0);
                }
                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    byte[] _bytes = LuaAPI.lua_tobytes(L, 2);

                    gen_to_be_invoked.DeserializeGraphs(_bytes);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to Pathfinding.AstarData.DeserializeGraphs!"));
        }
        static int _m_GetGraphIndex(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    PF.NavGraph _graph = (PF.NavGraph)translator.GetObject(L, 2, typeof(PF.NavGraph));

                    int gen_ret = gen_to_be_invoked.GetGraphIndex(
                        _graph);
                    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_FindGraphsOfType(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));

                    System.Collections.IEnumerable gen_ret = gen_to_be_invoked.FindGraphsOfType(
                        _type);
                    translator.PushAny(L, gen_ret);



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


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



                {
                    System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));

                    PF.NavGraph gen_ret = gen_to_be_invoked.FindGraphWhichInheritsFrom(
                        _type);
                    translator.Push(L, gen_ret);



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


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



                {
                    System.Func <PF.NavGraph, bool> _predicate = translator.GetDelegate <System.Func <PF.NavGraph, bool> >(L, 2);

                    PF.NavGraph gen_ret = gen_to_be_invoked.FindGraph(
                        _predicate);
                    translator.Push(L, gen_ret);



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

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

                Pathfinding.AstarData gen_to_be_invoked = (Pathfinding.AstarData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.file_cachedStartup = (UnityEngine.TextAsset)translator.GetObject(L, 2, typeof(UnityEngine.TextAsset));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
示例#8
0
        static int _s_set_graphs(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.AstarData gen_to_be_invoked = (Pathfinding.AstarData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.graphs = (PF.NavGraph[])translator.GetObject(L, 2, typeof(PF.NavGraph[]));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
示例#9
0
        static int _g_get_data_cachedStartup(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.AstarData gen_to_be_invoked = (Pathfinding.AstarData)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.data_cachedStartup);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
示例#10
0
        static int _g_get_graphTypes(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.AstarData gen_to_be_invoked = (Pathfinding.AstarData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.graphTypes);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
示例#11
0
        static int _m_SerializeGraphs(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    byte[] gen_ret = gen_to_be_invoked.SerializeGraphs(  );
                    LuaAPI.lua_pushstring(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <PF.SerializeSettings>(L, 2))
                {
                    PF.SerializeSettings _settings = (PF.SerializeSettings)translator.GetObject(L, 2, typeof(PF.SerializeSettings));

                    byte[] gen_ret = gen_to_be_invoked.SerializeGraphs(
                        _settings);
                    LuaAPI.lua_pushstring(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && translator.Assignable <PF.SerializeSettings>(L, 2))
                {
                    PF.SerializeSettings _settings = (PF.SerializeSettings)translator.GetObject(L, 2, typeof(PF.SerializeSettings));
                    uint _checksum;

                    byte[] gen_ret = gen_to_be_invoked.SerializeGraphs(
                        _settings,
                        out _checksum);
                    LuaAPI.lua_pushstring(L, gen_ret);
                    LuaAPI.xlua_pushuint(L, _checksum);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to Pathfinding.AstarData.SerializeGraphs!"));
        }
示例#12
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Pathfinding.AstarData gen_ret = new Pathfinding.AstarData();
                    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.AstarData constructor!"));
        }
示例#13
0
        static int _m_OnDestroy(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.OnDestroy(  );



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


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



                {
                    byte[] gen_ret = gen_to_be_invoked.GetData(  );
                    LuaAPI.lua_pushstring(L, gen_ret);



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


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



                {
                    byte[] _bytes = LuaAPI.lua_tobytes(L, 2);

                    gen_to_be_invoked.DeserializeGraphsAdditive(_bytes);



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