Example #1
0
 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);
             }
         }
     }
 }
Example #2
0
 public virtual void OnPayload(Payloads.Payload payload)
 {
 }