feat: add conditions

This commit is contained in:
Bragin Stepan
2026-02-19 20:46:32 +05:00
parent 4f01e66894
commit e07bde989a
17 changed files with 242 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
using System;
namespace _Project.Develop.Runtime.Utilities.Conditions
{
public class FuncCondition : ICondition
{
private Func<bool> _condition;
public FuncCondition(Func<bool> condition)
{
_condition = condition;
}
public bool Evaluate() => _condition.Invoke();
}
}