Beispiel #1
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    PF.AstarSerializer gen_ret = new PF.AstarSerializer();
                    translator.Push(L, gen_ret);

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

                    PF.AstarSerializer gen_ret = new PF.AstarSerializer(_settings);
                    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 PF.AstarSerializer constructor!"));
        }
        static int _m_OpenDeserialize(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                PF.AstarSerializer gen_to_be_invoked = (PF.AstarSerializer)translator.FastGetCSObj(L, 1);



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

                    bool gen_ret = gen_to_be_invoked.OpenDeserialize(
                        _bytes);
                    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_Serialize(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                PF.AstarSerializer gen_to_be_invoked = (PF.AstarSerializer)translator.FastGetCSObj(L, 1);



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

                    byte[] gen_ret = gen_to_be_invoked.Serialize(
                        _graph);
                    LuaAPI.lua_pushstring(L, gen_ret);



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


                PF.AstarSerializer gen_to_be_invoked = (PF.AstarSerializer)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.DeserializeEditorSettingsCompatibility(  );



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



                {
                    PF.NavGraph[]      _graphs = (PF.NavGraph[])translator.GetObject(L, 1, typeof(PF.NavGraph[]));
                    PF.AstarSerializer _sr     = (PF.AstarSerializer)translator.GetObject(L, 2, typeof(PF.AstarSerializer));

                    PF.AstarDeserializer.DeserializeGraphsPartAdditive(_graphs, _sr);



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


                PF.AstarSerializer gen_to_be_invoked = (PF.AstarSerializer)translator.FastGetCSObj(L, 1);



                {
                    PF.NavGraph[] gen_ret = gen_to_be_invoked.DeserializeGraphs(  );
                    translator.Push(L, gen_ret);



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


                PF.AstarSerializer gen_to_be_invoked = (PF.AstarSerializer)translator.FastGetCSObj(L, 1);



                {
                    uint gen_ret = gen_to_be_invoked.GetChecksum(  );
                    LuaAPI.xlua_pushuint(L, gen_ret);



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


                PF.AstarSerializer gen_to_be_invoked = (PF.AstarSerializer)translator.FastGetCSObj(L, 1);



                {
                    int _offset = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.SetGraphIndexOffset(_offset);



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


                PF.AstarSerializer gen_to_be_invoked = (PF.AstarSerializer)translator.FastGetCSObj(L, 1);



                {
                    PF.NavGraph[] __graphs = (PF.NavGraph[])translator.GetObject(L, 2, typeof(PF.NavGraph[]));

                    gen_to_be_invoked.SerializeGraphs(__graphs);



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