public bool IsBuffActivated(PudgeEvent type) { var res = LastActivatingTime.ContainsKey(type) && World.Clocks.CurrentTime - LastActivatingTime[type].Start < LastActivatingTime[type].Duration; return(res); }
public void ActivateBuff(PudgeEvent type, double duration) { LastActivatingTime[type] = new EventData { Event = type, Duration = duration, Start = World.Clocks.CurrentTime }; }
public void DeleteBuff(PudgeEvent type) { LastActivatingTime.Remove(type); }