Exemple #1
0
        public bool IsBuffActivated(PudgeEvent type)
        {
            var res = LastActivatingTime.ContainsKey(type) &&
                      World.Clocks.CurrentTime - LastActivatingTime[type].Start <
                      LastActivatingTime[type].Duration;

            return(res);
        }
Exemple #2
0
 public void ActivateBuff(PudgeEvent type, double duration)
 {
     LastActivatingTime[type] = new EventData
     {
         Event    = type,
         Duration = duration,
         Start    = World.Clocks.CurrentTime
     };
 }
Exemple #3
0
 public void DeleteBuff(PudgeEvent type)
 {
     LastActivatingTime.Remove(type);
 }