/// <summary> /// Activates ready debuffs, making them activate their effect. /// </summary> /// <param name="entity">Entity that will be affected by the debuffs.</param> private void Payload(IDebuffableEntity entity) { foreach (var debuff in activeDebuffs.Values) { if (debuff.IsReadyForPayload) { debuff.Payload(entity); } } }
public void Update(float lastFrameTime, IDebuffableEntity entity) { ChkActiveDebuffs(lastFrameTime); Payload(entity); }
public void Payload(IDebuffableEntity entity) { throw new NotImplementedException(); }