| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.SignInModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 5, 10, 2); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 5, 8, 2); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRefreshData", _m_OnRefreshData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSignRefresh", _e_OnSignRefresh); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "signAwardList", _g_get_signAwardList); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "cntSignList", _g_get_cntSignList); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ctnSignJade", _g_get_ctnSignJade); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "signNum", _g_get_signNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "surSignNum", _g_get_surSignNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "todaySign", _g_get_todaySign); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFirst", _g_get_isFirst); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "SumSignNum", _g_get_SumSignNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepSignInCost", _g_get_keepSignInCost); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "alreadySignInCount", _g_get_alreadySignInCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepSignInCount", _g_get_keepSignInCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "todaySignIn", _g_get_todaySignIn); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsFirstMonth", _g_get_IsFirstMonth); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "totalSignInCount", _g_get_totalSignInCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpoint", _g_get_redpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_ContinueJobItems", _g_get_m_ContinueJobItems); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_KeepSignInItemDict", _g_get_m_KeepSignInItemDict); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "redpoint", _s_set_redpoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_ContinueJobItems", _s_set_m_ContinueJobItems); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_KeepSignInItemDict", _s_set_m_KeepSignInItemDict); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_signAwardList(RealStatePtr L) |
| | | static int _g_get_keepSignInCost(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SignInModel gen_to_be_invoked = (Snxxz.UI.SignInModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.signAwardList); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.keepSignInCost); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_cntSignList(RealStatePtr L) |
| | | static int _g_get_alreadySignInCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SignInModel gen_to_be_invoked = (Snxxz.UI.SignInModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.cntSignList); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.alreadySignInCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ctnSignJade(RealStatePtr L) |
| | | static int _g_get_keepSignInCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SignInModel gen_to_be_invoked = (Snxxz.UI.SignInModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ctnSignJade); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.keepSignInCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_signNum(RealStatePtr L) |
| | | static int _g_get_todaySignIn(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SignInModel gen_to_be_invoked = (Snxxz.UI.SignInModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.signNum); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.todaySignIn); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_surSignNum(RealStatePtr L) |
| | | static int _g_get_IsFirstMonth(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SignInModel gen_to_be_invoked = (Snxxz.UI.SignInModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.surSignNum); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsFirstMonth); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_todaySign(RealStatePtr L) |
| | | static int _g_get_totalSignInCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SignInModel gen_to_be_invoked = (Snxxz.UI.SignInModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.todaySign); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_isFirst(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SignInModel gen_to_be_invoked = (Snxxz.UI.SignInModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isFirst); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_SumSignNum(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SignInModel gen_to_be_invoked = (Snxxz.UI.SignInModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.SumSignNum); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.totalSignInCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_m_ContinueJobItems(RealStatePtr L) |
| | | static int _g_get_m_KeepSignInItemDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SignInModel gen_to_be_invoked = (Snxxz.UI.SignInModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.m_ContinueJobItems); |
| | | translator.Push(L, gen_to_be_invoked.m_KeepSignInItemDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_m_ContinueJobItems(RealStatePtr L) |
| | | static int _s_set_m_KeepSignInItemDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SignInModel gen_to_be_invoked = (Snxxz.UI.SignInModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.m_ContinueJobItems = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)); |
| | | gen_to_be_invoked.m_KeepSignInItemDict = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |