Mise en place des MatchCommand
All checks were successful
check main state / build (9.0.x) (push) Successful in 1m28s
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:
13
Src/Giants.Core/Src/Commands/BaseMatchCommand.cs
Normal file
13
Src/Giants.Core/Src/Commands/BaseMatchCommand.cs
Normal 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user