Example #1
0
        public void UpdatePlayerBubbleTimer(ulong playerid, uint heroid)
        {
            BubbleTimerEntity entity = null;

            this.player_bubbleTime_map.TryGetValue(playerid, out entity);
            if (entity == null)
            {
                entity = new BubbleTimerEntity(playerid, heroid, this.InBat_Bubble_CDTime);
                this.player_bubbleTime_map.Add(playerid, entity);
            }
            entity.Start();
        }
Example #2
0
 public void Clear()
 {
     Dictionary <ulong, BubbleTimerEntity> .Enumerator enumerator = this.player_bubbleTime_map.GetEnumerator();
     while (enumerator.MoveNext())
     {
         KeyValuePair <ulong, BubbleTimerEntity> current = enumerator.Current;
         BubbleTimerEntity entity = current.Value;
         if (entity != null)
         {
             entity.Clear();
         }
     }
     this.player_bubbleTime_map.Clear();
     this.UnRegInBattleEvent();
     if (this.m_cdButton != null)
     {
         this.m_cdButton.Clear();
         this.m_cdButton = null;
     }
     this.m_view.Clear();
     this.m_formScript = null;
 }