Implements some micro-optimizations
All checks were successful
Build / Build (push) Successful in 51s

This commit is contained in:
2025-07-05 15:46:32 +02:00
parent c795f20e54
commit 8a857ed232
11 changed files with 80 additions and 21 deletions

View File

@@ -64,7 +64,7 @@ public interface ISpecies : INamedValue
/// <summary>
/// Check whether the Pokémon has a specific flag set.
/// </summary>
bool HasFlag(string key);
bool HasFlag(StringKey key);
/// <summary>
/// The data regarding into which Pokémon this species can evolve, and how.
@@ -147,5 +147,5 @@ public class SpeciesImpl : ISpecies
}
/// <inheritdoc />
public bool HasFlag(string key) => Flags.Contains(key);
public bool HasFlag(StringKey key) => Flags.Contains(key);
}