feat: add combat and deleveling AI

This commit is contained in:
Иванов Иван
2024-08-15 17:23:24 +02:00
parent bdd026519f
commit 2943f7a50b
79 changed files with 61368 additions and 6746 deletions

View File

@ -10,11 +10,11 @@ namespace Client.Domain.Common
public static class ObservableCollectionExtensions
{
public static void RemoveAll<T>(this ObservableCollection<T> collection,
Func<T, bool> condition)
Func<T, bool>? condition = null)
{
for (int i = collection.Count - 1; i >= 0; i--)
{
if (condition(collection[i]))
if (condition == null || condition(collection[i]))
{
collection.RemoveAt(i);
}