Esempio n. 1
0
 /// <inheritdoc/>
 public override bool DoesModelPassFilter(string filter) =>
 Name.Contains(filter, StringComparison.OrdinalIgnoreCase) ||
 Effect.Contains(filter, StringComparison.OrdinalIgnoreCase) ||
 Cost.Contains(filter, StringComparison.OrdinalIgnoreCase) ||
 string.Join(", ", Personas.Select(persona => $"{persona.Name}{(persona.LevelRequired != 0 ? $" ({persona.LevelRequired})" : "")}"))
 .Contains(filter, StringComparison.OrdinalIgnoreCase);