server-master/srcs/WingsAPI.Game/Buffs/IBuffComponent.cs
2026-02-10 18:21:30 +01:00

21 lines
No EOL
579 B
C#

using System;
using System.Collections.Generic;
using WingsEmu.Game._enum;
namespace WingsEmu.Game.Buffs;
public interface IBuffComponent
{
bool HasAnyBuff();
IReadOnlyList<Buff> GetAllBuffs();
ICollection<int> GetAllBuffsId();
IReadOnlyList<Buff> GetAllBuffs(Func<Buff, bool> predicate);
void AddBuff(Buff buff);
Buff GetBuff(int cardId);
Buff GetBuffByGroupId(int groupId);
bool HasBuff(BuffGroup buffType);
bool HasBuff(int cardId);
bool HasBuff(Guid buffId);
void RemoveBuff(Guid buffId);
void ClearNonPersistentBuffs();
}