Esempio n. 1
0
 protected bool IsRedRemind(WdfType _type)
 {
     if (ActiveTypeInfoDic.ContainsKey(_type))
     {
         using (var e = ActiveTypeInfoDic[_type].GetEnumerator())
         {
             while (e.MoveNext())
             {
                 if (e.Current.Value.redState)
                 {
                     return(true);
                 }
             }
         }
     }
     return(false);
 }
Esempio n. 2
0
 /// <summary>
 /// 注销
 /// </summary>
 protected void UnRegist()
 {
     //GameCenter.mainPlayerMng.MainPlayerInfo.OnBaseUpdate -= ChangeAutoUseSkill;
     MsgHander.UnRegist(0xD901, S2C_GetAllActivitys);
     MsgHander.UnRegist(0xD903, S2C_GetActivitysByID);
     MsgHander.UnRegist(0xD905, S2C_GetActivitysRewardPt);
     ActiveTypeInfoDic.Clear();
     RedDic.Clear();
     isHolidayOpen        = false;
     isWdfOpen            = false;
     isOpenOpen           = false;
     isGiftOpen           = false;
     isCombineOpen        = false;
     needReset            = true;
     isAccord             = false;
     CurWdfActiveType     = 0;
     CurWdfActiveMainType = WdfType.NONE;
     CurWdfActiveItemInfo = null;
 }
Esempio n. 3
0
 public WdfActiveData(operation_activity_title_info _info)
 {
     this.id       = (int)_info.id;
     this.type     = (int)_info.type;
     this.name     = _info.name;
     this.redState = _info.reward_flag != 0;
     if (id >= 10000 && id < 20000)
     {
         activateType = WdfType.OPEN;
     }
     if (id >= 20000 && id < 30000)
     {
         activateType = WdfType.WONDERFUL;
     }
     if (id >= 30000 && id < 40000)
     {
         activateType = WdfType.COMBINE;
     }
     if (id >= 40000 && id < 50000)
     {
         activateType = WdfType.HOLIDAY;
     }
 }