| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(InSevenDayModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 6, 5, 5); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 6, 6, 6); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | 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.GETTER_IDX, "IsMainGo", _g_get_IsMainGo); |
| | | |
| | | 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.RegisterFunc(L, Utils.SETTER_IDX, "IsMainGo", _s_set_IsMainGo); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_IsMainGo(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.IsMainGo); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_IsMainGo(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | InSevenDayModel gen_to_be_invoked = (InSevenDayModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.IsMainGo = LuaAPI.lua_toboolean(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |