First couple abilities implemented
All checks were successful
Build / Build (push) Successful in 48s
All checks were successful
Build / Build (push) Successful in 48s
This commit is contained in:
@@ -23,6 +23,8 @@ public interface IAbility : INamedValue
|
||||
/// Checks whether the ability has a specific flag.
|
||||
/// </summary>
|
||||
bool HasFlag(StringKey key);
|
||||
|
||||
bool CanBeChanged { get; }
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -30,12 +32,13 @@ public class AbilityImpl : IAbility
|
||||
{
|
||||
/// <inheritdoc cref="AbilityImpl" />
|
||||
public AbilityImpl(StringKey name, StringKey? effect, IReadOnlyDictionary<StringKey, object?> parameters,
|
||||
ImmutableHashSet<StringKey> flags)
|
||||
ImmutableHashSet<StringKey> flags, bool canBeChanged)
|
||||
{
|
||||
Name = name;
|
||||
Effect = effect;
|
||||
Parameters = parameters;
|
||||
Flags = flags;
|
||||
CanBeChanged = canBeChanged;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -54,6 +57,9 @@ public class AbilityImpl : IAbility
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool HasFlag(StringKey key) => Flags.Contains(key);
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool CanBeChanged { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user