#if USE_UNI_LUA 
 | 
using LuaAPI = UniLua.Lua; 
 | 
using RealStatePtr = UniLua.ILuaState; 
 | 
using LuaCSFunction = UniLua.CSharpFunctionDelegate; 
 | 
#else 
 | 
using LuaAPI = XLua.LuaDLL.Lua; 
 | 
using RealStatePtr = System.IntPtr; 
 | 
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; 
 | 
#endif 
 | 
  
 | 
using XLua; 
 | 
using System.Collections.Generic; 
 | 
  
 | 
  
 | 
namespace XLua.CSObjectWrap 
 | 
{ 
 | 
    using Utils = XLua.Utils; 
 | 
    public class InSevenDayModelWrap  
 | 
    { 
 | 
        public static void __Register(RealStatePtr L) 
 | 
        { 
 | 
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
            System.Type type = typeof(InSevenDayModel); 
 | 
            Utils.BeginObjectRegister(type, L, translator, 0, 6, 5, 5); 
 | 
             
 | 
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); 
 | 
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); 
 | 
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); 
 | 
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); 
 | 
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAwardMessage", _m_GetAwardMessage); 
 | 
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReceiveAward", _m_ReceiveAward); 
 | 
             
 | 
             
 | 
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "InSevenDayDic", _g_get_InSevenDayDic); 
 | 
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "RewardForDic", _g_get_RewardForDic); 
 | 
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "DayCnt", _g_get_DayCnt); 
 | 
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsOpenSevenDay", _g_get_IsOpenSevenDay); 
 | 
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "redPointStre1", _g_get_redPointStre1); 
 | 
             
 | 
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "InSevenDayDic", _s_set_InSevenDayDic); 
 | 
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "RewardForDic", _s_set_RewardForDic); 
 | 
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "DayCnt", _s_set_DayCnt); 
 | 
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsOpenSevenDay", _s_set_IsOpenSevenDay); 
 | 
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "redPointStre1", _s_set_redPointStre1); 
 | 
             
 | 
             
 | 
            Utils.EndObjectRegister(type, L, translator, null, null, 
 | 
                null, null, null); 
 | 
  
 | 
            Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); 
 | 
             
 | 
            Utils.RegisterFunc(L, Utils.CLS_IDX, "AwardMessageUpdate", _e_AwardMessageUpdate); 
 | 
             
 | 
             
 | 
             
 | 
             
 | 
             
 | 
            Utils.EndClassRegister(type, L, translator); 
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int __CreateInstance(RealStatePtr L) 
 | 
        { 
 | 
             
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
                if(LuaAPI.lua_gettop(L) == 1) 
 | 
                { 
 | 
                     
 | 
                    InSevenDayModel gen_ret = new InSevenDayModel(); 
 | 
                    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 InSevenDayModel constructor!"); 
 | 
             
 | 
        } 
 | 
         
 | 
         
 | 
         
 | 
         
 | 
         
 | 
         
 | 
         
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _m_Init(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
             
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
             
 | 
             
 | 
                 
 | 
                { 
 | 
                     
 | 
                    gen_to_be_invoked.Init(  ); 
 | 
                     
 | 
                     
 | 
                     
 | 
                    return 0; 
 | 
                } 
 | 
                 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
             
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _m_OnBeforePlayerDataInitialize(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
             
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
             
 | 
             
 | 
                 
 | 
                { 
 | 
                     
 | 
                    gen_to_be_invoked.OnBeforePlayerDataInitialize(  ); 
 | 
                     
 | 
                     
 | 
                     
 | 
                    return 0; 
 | 
                } 
 | 
                 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
             
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _m_OnPlayerLoginOk(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
             
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
             
 | 
             
 | 
                 
 | 
                { 
 | 
                     
 | 
                    gen_to_be_invoked.OnPlayerLoginOk(  ); 
 | 
                     
 | 
                     
 | 
                     
 | 
                    return 0; 
 | 
                } 
 | 
                 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
             
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _m_UnInit(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
             
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
             
 | 
             
 | 
                 
 | 
                { 
 | 
                     
 | 
                    gen_to_be_invoked.UnInit(  ); 
 | 
                     
 | 
                     
 | 
                     
 | 
                    return 0; 
 | 
                } 
 | 
                 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
             
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _m_GetAwardMessage(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
             
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
             
 | 
             
 | 
                 
 | 
                { 
 | 
                    int _dayCnt = LuaAPI.xlua_tointeger(L, 2); 
 | 
                    int _awardInfo = LuaAPI.xlua_tointeger(L, 3); 
 | 
                     
 | 
                    gen_to_be_invoked.GetAwardMessage( _dayCnt, _awardInfo ); 
 | 
                     
 | 
                     
 | 
                     
 | 
                    return 0; 
 | 
                } 
 | 
                 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
             
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _m_ReceiveAward(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
             
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
             
 | 
             
 | 
                 
 | 
                { 
 | 
                    int _Index = LuaAPI.xlua_tointeger(L, 2); 
 | 
                     
 | 
                    gen_to_be_invoked.ReceiveAward( _Index ); 
 | 
                     
 | 
                     
 | 
                     
 | 
                    return 0; 
 | 
                } 
 | 
                 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
             
 | 
        } 
 | 
         
 | 
         
 | 
         
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _g_get_InSevenDayDic(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
                translator.Push(L, gen_to_be_invoked.InSevenDayDic); 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return 1; 
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _g_get_RewardForDic(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
                translator.Push(L, gen_to_be_invoked.RewardForDic); 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return 1; 
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _g_get_DayCnt(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.DayCnt); 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return 1; 
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _g_get_IsOpenSevenDay(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsOpenSevenDay); 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return 1; 
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _g_get_redPointStre1(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
                translator.Push(L, gen_to_be_invoked.redPointStre1); 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return 1; 
 | 
        } 
 | 
         
 | 
         
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _s_set_InSevenDayDic(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
                gen_to_be_invoked.InSevenDayDic = (System.Collections.Generic.Dictionary<int, InSevenDayClass>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, InSevenDayClass>)); 
 | 
             
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return 0; 
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _s_set_RewardForDic(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
                gen_to_be_invoked.RewardForDic = (System.Collections.Generic.Dictionary<int, int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, int>)); 
 | 
             
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return 0; 
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _s_set_DayCnt(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
                gen_to_be_invoked.DayCnt = LuaAPI.xlua_tointeger(L, 2); 
 | 
             
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return 0; 
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _s_set_IsOpenSevenDay(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
                gen_to_be_invoked.IsOpenSevenDay = LuaAPI.lua_toboolean(L, 2); 
 | 
             
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return 0; 
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _s_set_redPointStre1(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
                InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); 
 | 
                gen_to_be_invoked.redPointStre1 = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint)); 
 | 
             
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return 0; 
 | 
        } 
 | 
         
 | 
         
 | 
         
 | 
         
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _e_AwardMessageUpdate(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
                int gen_param_count = LuaAPI.lua_gettop(L); 
 | 
                System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 2); 
 | 
                if (gen_delegate == null) { 
 | 
                    return LuaAPI.luaL_error(L, "#2 need System.Action!"); 
 | 
                } 
 | 
                 
 | 
                 
 | 
                if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { 
 | 
                    InSevenDayModel.AwardMessageUpdate += gen_delegate; 
 | 
                    return 0; 
 | 
                }  
 | 
                 
 | 
                 
 | 
                if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { 
 | 
                    InSevenDayModel.AwardMessageUpdate -= gen_delegate; 
 | 
                    return 0; 
 | 
                }  
 | 
                 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return LuaAPI.luaL_error(L, "invalid arguments to InSevenDayModel.AwardMessageUpdate!"); 
 | 
        } 
 | 
         
 | 
    } 
 | 
} 
 |