First couple abilities implemented
All checks were successful
Build / Build (push) Successful in 48s

This commit is contained in:
2025-05-31 12:29:03 +02:00
parent c1a7b806b1
commit b090aa65f9
34 changed files with 733 additions and 50 deletions

View File

@@ -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>