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

@@ -142,7 +142,7 @@ public interface IMoveData : INamedValue
/// <summary>
/// Arbitrary flags that can be applied to the move.
/// </summary>
bool HasFlag(string key);
bool HasFlag(StringKey key);
}
/// <inheritdoc />
@@ -195,5 +195,5 @@ public class MoveDataImpl : IMoveData
private readonly ImmutableHashSet<StringKey> _flags;
/// <inheritdoc />
public bool HasFlag(string key) => _flags.Contains(key);
public bool HasFlag(StringKey key) => _flags.Contains(key);
}