Make moveflags of gen 7 plugin shared statically
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user