| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.OSGiftModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 14, 8, 2); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 16, 8, 2); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsExist", _m_IsExist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExistAnyGift", _m_ExistAnyGift); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGiftExist", _m_IsGiftExist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGiftBuy", _m_IsGiftBuy); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGiftAlreadyBuy", _m_IsGiftAlreadyBuy); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "DisplayErrorRemind", _m_DisplayErrorRemind); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRechargeId", _m_GetRechargeId); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAreadyOpens", _m_SetAreadyOpens); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDefaultSelect", _m_GetDefaultSelect); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDayRemind", _m_SetDayRemind); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPetInfo", _m_GetPetInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkillActivePoint", _m_GetSkillActivePoint); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onStateUpdate", _e_onStateUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onSelectUpdate", _e_onSelectUpdate); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "jumpGiftId", _g_get_jumpGiftId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "gifts", _g_get_gifts); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "alreadyOpens", _g_get_alreadyOpens); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "skillActivePoint", _g_get_skillActivePoint); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectIndex", _s_set_selectIndex); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "jumpGiftId", _s_set_jumpGiftId); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsExist(RealStatePtr L) |
| | | static int _m_ExistAnyGift(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsGiftBuy(RealStatePtr L) |
| | | static int _m_IsGiftAlreadyBuy(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_DisplayErrorRemind(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.OSGiftModel gen_to_be_invoked = (Snxxz.UI.OSGiftModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _payType = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.DisplayErrorRemind( _payType ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetPetInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.OSGiftModel gen_to_be_invoked = (Snxxz.UI.OSGiftModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _petId; |
| | | int _level; |
| | | |
| | | gen_to_be_invoked.GetPetInfo( out _petId, out _level ); |
| | | LuaAPI.xlua_pushinteger(L, _petId); |
| | | |
| | | LuaAPI.xlua_pushinteger(L, _level); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSkillActivePoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.OSGiftModel gen_to_be_invoked = (Snxxz.UI.OSGiftModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _level = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetSkillActivePoint( _level ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_skillActivePoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.OSGiftModel gen_to_be_invoked = (Snxxz.UI.OSGiftModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.skillActivePoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_selectIndex(RealStatePtr L) |
| | | { |
| | | try { |