Refactor GameRepository and GameManager architecture, introduce Player model, and update dependency registration in Program.cs.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using API.Models.DataClasses;
|
||||
using API.Models.Game;
|
||||
|
||||
namespace API.Repository.GameRepo;
|
||||
|
||||
public interface IGameRepository
|
||||
{
|
||||
public List<Game> GetAll();
|
||||
public Game? GetOne(string id);
|
||||
public Game? GetOne(SixDigitInt gameCode);
|
||||
public Game Create(Coordinates gameFieldSize, Player player);
|
||||
public void Destroy(string id);
|
||||
}
|
||||
Reference in New Issue
Block a user