Mise en place des MatchCommand
All checks were successful
check main state / build (9.0.x) (push) Successful in 1m28s

Ajout des données dynamiques au match
This commit was merged in pull request #21.
This commit is contained in:
2025-04-02 23:14:59 +02:00
committed by mcmuzzle
parent 4a4446ea48
commit 80b3d71104
8 changed files with 365 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
namespace Giants.Core.Commands;
public abstract class BaseMatchCommand<T> : BaseCommand<T> where T : BaseCommandResult
{
public required Match InputMatch { get; init; }
protected abstract T LocalMatchExecute(Match match);
protected override T LocalExecute()
{
return LocalMatchExecute(InputMatch.Clone());
}
}