/// <param name="buff">Buff对象</param> public void removeBuff(RuntimeBuff buff, bool force = false) { buffs.Remove(buff); _addedBuffs.Remove(buff); on(BaseBattlerCallback.BuffRemoved, buff, force); }
public RuntimeBuff addBuff(RuntimeBuff buff) { buffs.Add(buff); on(BaseBattlerCallback.BuffAdded, buff); _addedBuffs.Add(buff); return(buff); }
/// <summary> /// BUFF移除回调 /// </summary> protected virtual void _onBuffRemoved(RuntimeBuff buff, bool force = false) { }
/// <summary> /// BUFF添加回调 /// </summary> protected virtual void _onBuffAdded(RuntimeBuff buff) { }