| | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 9, 1, 0); |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 9, 2, 1); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDefaultSpriteGrayMaterial", _m_GetDefaultSpriteGrayMaterial_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetInstantiatedSpriteGrayMaterial", _m_GetInstantiatedSpriteGrayMaterial_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSmoothMaskGrayMaterial", _m_GetSmoothMaskGrayMaterial_xlua_st_); |
| | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "hudMaterial", _g_get_hudMaterial); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "m_HudMaterial", _g_get_m_HudMaterial); |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "m_HudMaterial", _s_set_m_HudMaterial); |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_m_HudMaterial(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.Push(L, MaterialUtility.m_HudMaterial); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_m_HudMaterial(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | MaterialUtility.m_HudMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(PlayerDatas); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 20, 14, 7); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 22, 14, 7); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitPlayerData", _m_InitPlayerData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdatePlayerData", _m_UpdatePlayerData); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReCheckAttackTarget", _m_ReCheckAttackTarget); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEquip", _m_IsEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestWorldTick", _m_RequestWorldTick); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearTick", _m_ClearTick); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTickVaild", _m_IsTickVaild); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWorldTick", _m_GetWorldTick); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRoleAttrRefresh", _e_OnRoleAttrRefresh); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ClearTick(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.ClearTick( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsTickVaild(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsTickVaild( ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetWorldTick(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.CrossServerOneVsOneModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 28, 21, 10); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 28, 20, 9); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "afterOpenDayOpenCross", _g_get_afterOpenDayOpenCross); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "pkResultInfo", _g_get_pkResultInfo); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LocalSaveThirdTypeKey", _g_get_LocalSaveThirdTypeKey); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossServerRedpoint", _g_get_crossServerRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossOneVsOneRedpoint", _g_get_crossOneVsOneRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossArenaRedpoint", _g_get_crossArenaRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossDayAwardsRedpoint", _g_get_crossDayAwardsRedpoint); |
| | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsMatching", _s_set_IsMatching); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "matchStartTime", _s_set_matchStartTime); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "LocalSaveThirdTypeKey", _s_set_LocalSaveThirdTypeKey); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossServerRedpoint", _s_set_crossServerRedpoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossOneVsOneRedpoint", _s_set_crossOneVsOneRedpoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossArenaRedpoint", _s_set_crossArenaRedpoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossDayAwardsRedpoint", _s_set_crossDayAwardsRedpoint); |
| | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 8, 0, 0); |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 7, 0, 0); |
| | | |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CrossServerDataMapId", Snxxz.UI.CrossServerOneVsOneModel.CrossServerDataMapId); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CrossServerRedKey", Snxxz.UI.CrossServerOneVsOneModel.CrossServerRedKey); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CrossOneVsOneRedKey", Snxxz.UI.CrossServerOneVsOneModel.CrossOneVsOneRedKey); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CrossArenaRedKey", Snxxz.UI.CrossServerOneVsOneModel.CrossArenaRedKey); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CrossDayAwardsRedKey", Snxxz.UI.CrossServerOneVsOneModel.CrossDayAwardsRedKey); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_crossServerRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.crossServerRedpoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_crossOneVsOneRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.LocalSaveThirdTypeKey = LuaAPI.lua_tostring(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_crossServerRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.crossServerRedpoint = (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); |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 287f2992ccb8c74419cbb26d17d3d040 |
| | | timeCreated: 1545806644 |
| | | timeCreated: 1547618230 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.PackSendQuestMgr); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 24, 5, 2); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 25, 5, 2); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendPutOnQuest", _m_SendPutOnQuest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckEquipUselimit", _m_CheckEquipUselimit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOfflineMaxNum", _m_GetOfflineMaxNum); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsMaxOfflineTime", _m_CheckIsMaxOfflineTime); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMakeUseQuest", _m_SendMakeUseQuest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsHaveMakeNumber", _m_IsHaveMakeNumber); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMainServerMakeUseItem", _m_SendMainServerMakeUseItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendCrossServerMakeUseItem", _m_SendCrossServerMakeUseItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnClickSplitBtn", _m_OnClickSplitBtn); |
| | |
| | | { |
| | | Snxxz.UI.ItemModel _itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel)); |
| | | |
| | | gen_to_be_invoked.CheckUseCondition( _itemModel ); |
| | | bool gen_ret = gen_to_be_invoked.CheckUseCondition( _itemModel ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsHaveMakeNumber(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.PackSendQuestMgr gen_to_be_invoked = (Snxxz.UI.PackSendQuestMgr)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | int _index = LuaAPI.xlua_tointeger(L, 2); |
| | | int _useCnt = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsHaveMakeNumber( _index, _useCnt ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) |
| | | { |
| | | int _index = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsHaveMakeNumber( _index ); |
| | | LuaAPI.lua_pushboolean(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 Snxxz.UI.PackSendQuestMgr.IsHaveMakeNumber!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SendMainServerMakeUseItem(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.RoleParticularModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 23, 3, 1); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 25, 3, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewKingFairyLeader", _m_ViewKingFairyLeader); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewFairyFeastTransmit", _m_ViewFairyFeastTransmit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewFairyCrossServerOneVsOne", _m_ViewFairyCrossServerOneVsOne); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewCrossServerPlayerEquip", _m_ViewCrossServerPlayerEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewCrossPlayerFightPower", _m_ViewCrossPlayerFightPower); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRevRoleEquip", _m_OnRevRoleEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRevRoleFuncPower", _m_OnRevRoleFuncPower); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFuncFightPower", _m_GetFuncFightPower); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ViewCrossServerPlayerEquip(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __playerId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.ViewCrossServerPlayerEquip( __playerId ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ViewCrossPlayerFightPower(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __playerId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.ViewCrossPlayerFightPower( __playerId ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnRevRoleEquip(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 11479d6613f53454b9f092ed34c058f8 |
| | | timeCreated: 1546151304 |
| | | timeCreated: 1547618230 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | return PlayerDatas.Instance.baseData.CrossServerFlag > 2; |
| | | } |
| | | |
| | | public const int CrossServerRedKey = 213; |
| | | static Redpoint crossServerRedpoint = new Redpoint(CrossServerRedKey); |
| | | |
| | | public static void UpdateCrossServerRedpoint() |
| | | { |
| | | var oneVsOneCount = CrossServerOneVsOnePKSeason.Instance.isSatisfyMatch |
| | | ? CrossServerOneVsOnePlayerInfo.Instance.GetDayRemainNum() : 0; |
| | | var crossServerBossCount = GeneralDefine.bossWearyValues[2] |
| | | - ModelCenter.Instance.GetModel<CrossServerBossModel>().wearyValue; |
| | | |
| | | var count = oneVsOneCount + crossServerBossCount; |
| | | if (count > 0) |
| | | { |
| | | crossServerRedpoint.count = count; |
| | | crossServerRedpoint.state = RedPointState.Quantity; |
| | | } |
| | | else |
| | | { |
| | | crossServerRedpoint.count = 0; |
| | | crossServerRedpoint.state = RedPointState.None; |
| | | } |
| | | } |
| | | |
| | | public static bool IsCrossServerOneVsOne() |
| | | { |
| | | var dungeonModel = ModelCenter.Instance.GetModel<DungeonModel>(); |
| | |
| | | return PlayerDatas.Instance.baseData.CrossServerFlag > 2 |
| | | && PlayerDatas.Instance.baseData.MapID == CrossServerBossModel.DATA_MAPID; |
| | | } |
| | | |
| | | } |
| | |
| | | #endregion
|
| | |
|
| | | #region 红点
|
| | | public const int CrossServerRedKey = 213;
|
| | | public Redpoint crossServerRedpoint = new Redpoint(CrossServerRedKey);
|
| | |
|
| | | public const int CrossOneVsOneRedKey = 21301;
|
| | | public Redpoint crossOneVsOneRedpoint = new Redpoint(CrossServerRedKey,CrossOneVsOneRedKey);
|
| | | public Redpoint crossOneVsOneRedpoint = new Redpoint(CrossServerUtility.CrossServerRedKey,CrossOneVsOneRedKey);
|
| | | public const int CrossArenaRedKey = 2130101;
|
| | | public Redpoint crossArenaRedpoint = new Redpoint(CrossOneVsOneRedKey, CrossArenaRedKey);
|
| | | public const int CrossDayAwardsRedKey = 21301011;
|
| | | public Redpoint crossDayAwardsRedpoint = new Redpoint(CrossArenaRedKey,CrossDayAwardsRedKey);
|
| | | public const int CrossMatchRedKey = 21301012;
|
| | | public Redpoint crossMatchRedpoint = new Redpoint(CrossArenaRedKey, CrossMatchRedKey);
|
| | |
|
| | | public void UpdateCrossDayAwardsRedpoint()
|
| | | {
|
| | | bool isReceive = false;
|
| | |
| | | var playerInfo = CrossServerOneVsOnePlayerInfo.Instance;
|
| | | var pkSeason = CrossServerOneVsOnePKSeason.Instance;
|
| | |
|
| | | if (pkSeason.isSatisfyMatch
|
| | | && playerInfo.GetDayRemainNum() > 0)
|
| | | if (pkSeason.isSatisfyMatch&& playerInfo.GetDayRemainNum() > 0 )
|
| | | {
|
| | | crossMatchRedpoint.state = RedPointState.Simple;
|
| | | }
|
| | |
| | |
|
| | | if (crossMatchRedpoint.state != RedPointState.None)
|
| | | {
|
| | | crossServerRedpoint.count = playerInfo.GetDayRemainNum();
|
| | | crossServerRedpoint.state = RedPointState.Quantity;
|
| | | }
|
| | | else
|
| | | {
|
| | | crossServerRedpoint.count = 0;
|
| | | CrossServerUtility.UpdateCrossServerRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | namespace Snxxz.UI |
| | | { |
| | | [XLua.LuaCallCSharp] |
| | | public class DogzDungeonModel : Model, IPlayerLoginOk |
| | | public class DogzDungeonModel : Model, IPlayerLoginOk |
| | | { |
| | | |
| | | public const int DOGZDUNGEON_REDPOINT = 77002; |
| | |
| | | { |
| | | m_WearyValue = value; |
| | | UpdateRedpoint(); |
| | | crossServerBossModel.UpdateRedpoint(); |
| | | if (bossWearyValueChangeEvent != null) |
| | | { |
| | | bossWearyValueChangeEvent(); |
| | |
| | | public Redpoint redpoint = new Redpoint(FindPreciousModel.LOOTPRECIOUs_REDPOINTID, DOGZDUNGEON_REDPOINT); |
| | | |
| | | FindPreciousModel findPreciousModel { get { return ModelCenter.Instance.GetModel<FindPreciousModel>(); } } |
| | | CrossServerBossModel crossServerBossModel { get { return ModelCenter.Instance.GetModel<CrossServerBossModel>(); } } |
| | | |
| | | public int bigBoxNpcId = 0; |
| | | public int smallBoxNpcId = 0; |