public void RemoveEffectByToken(EffectToken token) { var effect = GetEffectByToken(token); if (effect == null) { return; } Remove(effect); }
public EffectBuilder WithToken(EffectToken token) { Token = token; return(this); }
public Effect GetEffectByToken(EffectToken token) { return(_effects.FirstOrDefault(e => e.Token == token)); }
public bool ContainsToken(EffectToken token) { return(Effects.Any(e => e.Token == token)); }