Make moveflags of gen 7 plugin shared statically

This commit is contained in:
2025-07-26 14:36:47 +02:00
parent 77d7b86a3c
commit 6eba332096
33 changed files with 223 additions and 146 deletions

View File

@@ -143,6 +143,11 @@ public interface IMoveData : INamedValue
/// Arbitrary flags that can be applied to the move.
/// </summary>
bool HasFlag(StringKey key);
/// <summary>
/// A readonly list of all flags on the move.
/// </summary>
IReadOnlyCollection<StringKey> Flags { get; }
}
/// <inheritdoc />
@@ -196,6 +201,9 @@ public class MoveDataImpl : IMoveData
/// <inheritdoc />
public bool HasFlag(StringKey key) => _flags.Contains(key);
/// <inheritdoc />
public IReadOnlyCollection<StringKey> Flags => _flags;
}
public static class MoveTargetHelpers