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

                GateServer.GS __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.state);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
示例#2
0
        static int _s_set_state(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                GateServer.GS             __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1);
                GateServer.GSConfig.State __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.state = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
示例#3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    GateServer.GS __cl_gen_ret = new GateServer.GS();
                    translator.Push(L, __cl_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 GateServer.GS constructor!"));
        }
示例#4
0
        static int _m_ReloadDefs(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                GateServer.GS __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1);



                {
                    __cl_gen_to_be_invoked.ReloadDefs(  );



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


                GateServer.GS __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1);



                {
                    Shared.ErrorCode __cl_gen_ret = __cl_gen_to_be_invoked.Start(  );
                    translator.Push(L, __cl_gen_ret);



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


                GateServer.GS __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1);



                {
                    GateServer.Options opts = (GateServer.Options)translator.GetObject(L, 2, typeof(GateServer.Options));

                    Shared.ErrorCode __cl_gen_ret = __cl_gen_to_be_invoked.Initialize(opts);
                    translator.Push(L, __cl_gen_ret);



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


                GateServer.GS __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1);



                {
                    long elapsed = LuaAPI.lua_toint64(L, 2);
                    long dt      = LuaAPI.lua_toint64(L, 3);

                    __cl_gen_to_be_invoked.Update(elapsed, dt);



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