Implements some micro-optimizations
All checks were successful
Build / Build (push) Successful in 51s
All checks were successful
Build / Build (push) Successful in 51s
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user