First couple abilities implemented
Build / Build (push) Successful in 48s

This commit is contained in:
Deukhoofd committed 2025-05-31 12:29:03 +02:00
1 parent c1a7b806b1
commit b090aa65f9
34 files changed
+733 -50

No files matched your search

+7 -1
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>