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


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


            try {
                {
                    __cl_gen_to_be_invoked.Unload(  );



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

            try {
                if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    string strName = LuaAPI.lua_tostring(L, 2);
                    string strPath = LuaAPI.lua_tostring(L, 3);

                    xc.DBSysConfig __cl_gen_ret = new xc.DBSysConfig(strName, strPath);
                    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.DBSysConfig constructor!"));
        }
Пример #3
0
        static int _m_GetAllSysConfig(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


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



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


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


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

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



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


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


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

                    xc.DBSysConfig.SysConfig __cl_gen_ret = __cl_gen_to_be_invoked.GetFirstMainId(mainId);
                    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_GetRelationSysById(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


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

                    System.Collections.Generic.List <uint> __cl_gen_ret = __cl_gen_to_be_invoked.GetRelationSysById(sys_id);
                    translator.Push(L, __cl_gen_ret);



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