Exemple #1
0
        static int _g_get_Name(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.DBHonor.DBHonorItem __cl_gen_to_be_invoked = (xc.DBHonor.DBHonorItem)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, __cl_gen_to_be_invoked.Name);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemple #2
0
        static int _s_set_AddAttr(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.DBHonor.DBHonorItem __cl_gen_to_be_invoked = (xc.DBHonor.DBHonorItem)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.AddAttr = (System.Collections.Generic.List <xc.DBTextResource.DBAttrItem>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <xc.DBTextResource.DBAttrItem>));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemple #3
0
        static int _s_set_Quality(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.DBHonor.DBHonorItem __cl_gen_to_be_invoked = (xc.DBHonor.DBHonorItem)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.Quality = LuaAPI.xlua_touint(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemple #4
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.DBHonor.DBHonorItem __cl_gen_ret = new xc.DBHonor.DBHonorItem();
                    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.DBHonor.DBHonorItem constructor!"));
        }
Exemple #5
0
        static int _m_GetData(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


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

                    xc.DBHonor.DBHonorItem __cl_gen_ret = __cl_gen_to_be_invoked.GetData(id);
                    translator.Push(L, __cl_gen_ret);



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