Пример #1
0
        static int _m_CheckSysHasDownloaded(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint sys_id = LuaAPI.xlua_touint(L, 2);
                    int  patch_id;

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.CheckSysHasDownloaded(sys_id, out patch_id);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);
                    LuaAPI.xlua_pushinteger(L, patch_id);



                    return(2);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #2
0
        static int _s_set_AutoExpandLeft(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.AutoExpandLeft = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Пример #3
0
        static int _g_get_SkipSysOpen(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.SkipSysOpen);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Пример #4
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.SysConfigManager __cl_gen_ret = new xc.SysConfigManager();
                    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 xc.SysConfigManager constructor!"));
        }
Пример #5
0
        static int _m_RegisterAllMessages(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.RegisterAllMessages(  );



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



            try {
                {
                    xc.SysConfigManager __cl_gen_ret = xc.Singleton <xc.SysConfigManager> .GetInstance(  );

                    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_IsWaiting(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    bool __cl_gen_ret = __cl_gen_to_be_invoked.IsWaiting(  );
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #8
0
        static int _m_GetAllWaitingSysList(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.Collections.Generic.List <xc.DBSysConfig.SysConfig> __cl_gen_ret = __cl_gen_to_be_invoked.GetAllWaitingSysList(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #9
0
        static int _m_CheckSysHasOpened(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    uint sys_id = LuaAPI.xlua_touint(L, 2);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.CheckSysHasOpened(sys_id);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    uint sys_id    = LuaAPI.xlua_touint(L, 2);
                    bool need_tips = LuaAPI.lua_toboolean(L, 3);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.CheckSysHasOpened(sys_id, need_tips);
                    LuaAPI.lua_pushboolean(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 xc.SysConfigManager.CheckSysHasOpened!"));
        }
Пример #10
0
        static int _m_HandleNotifySysClose(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint sys_id = LuaAPI.xlua_touint(L, 2);

                    __cl_gen_to_be_invoked.HandleNotifySysClose(sys_id);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #11
0
        static int _m_OpenSys(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && translator.Assignable <xc.DBSysConfig.SysConfig>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    xc.DBSysConfig.SysConfig config = (xc.DBSysConfig.SysConfig)translator.GetObject(L, 2, typeof(xc.DBSysConfig.SysConfig));
                    bool fire_evet = LuaAPI.lua_toboolean(L, 3);

                    __cl_gen_to_be_invoked.OpenSys(config, fire_evet);



                    return(0);
                }
                if (__gen_param_count == 2 && translator.Assignable <xc.DBSysConfig.SysConfig>(L, 2))
                {
                    xc.DBSysConfig.SysConfig config = (xc.DBSysConfig.SysConfig)translator.GetObject(L, 2, typeof(xc.DBSysConfig.SysConfig));

                    __cl_gen_to_be_invoked.OpenSys(config);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.SysConfigManager.OpenSys!"));
        }
Пример #12
0
        static int _m_GetFirstOpenSysByPos(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.DBSysConfig.ESysBtnPos pos; translator.Get(L, 2, out pos);

                    uint __cl_gen_ret = __cl_gen_to_be_invoked.GetFirstOpenSysByPos(pos);
                    LuaAPI.xlua_pushuint(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #13
0
        static int _m_MarkRedSpotById(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    int  sys_id   = LuaAPI.xlua_tointeger(L, 2);
                    bool red_spot = LuaAPI.lua_toboolean(L, 3);

                    __cl_gen_to_be_invoked.MarkRedSpotById(sys_id, red_spot);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #14
0
        static int _m_GetWaittingSysConfig(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.SysConfigManager __cl_gen_to_be_invoked = (xc.SysConfigManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint sys_id = LuaAPI.xlua_touint(L, 2);

                    xc.DBSysConfig.SysConfig __cl_gen_ret = __cl_gen_to_be_invoked.GetWaittingSysConfig(sys_id);
                    translator.Push(L, __cl_gen_ret);



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