public void SendTargetPayload(Actor target, Payloads.Payload payload) { if (_buffs.ContainsKey(target)) { List <Buff> buffs = _buffs[target]; int buffCount = buffs.Count; for (int i = 0; i < buffCount; ++i) { if (buffs[i] != null) { buffs[i].OnPayload(payload); } } } }
public virtual void OnPayload(Payloads.Payload payload) { }