除了充盈都做完了
This commit is contained in:
@@ -27,6 +27,19 @@ namespace Continentis.MainGame.Character
|
||||
{
|
||||
return (T)buffList.FindAll(x => x.GetType() == typeof(T)).Find(x => x.identification == identification);
|
||||
}
|
||||
|
||||
public bool TryGetBuff<T>(out T buff) where T : CharacterCombatBuffBase
|
||||
{
|
||||
buff = GetBuff<T>();
|
||||
return buff != null;
|
||||
}
|
||||
|
||||
public bool TryGetBuffs<T>(out List<T> buffs) where T : CharacterCombatBuffBase
|
||||
{
|
||||
List<CharacterCombatBuffBase> foundBuffs = buffList.FindAll(x => x.GetType() == typeof(T));
|
||||
buffs = foundBuffs.Cast<T>().ToList();
|
||||
return buffs.Count > 0;
|
||||
}
|
||||
|
||||
public bool HasBuff<T>() where T : CharacterCombatBuffBase
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user