Refactor GameRepository and GameManager architecture, introduce Player model, and update dependency registration in Program.cs.
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
using API.Services.GameManager;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace API.Controllers;
|
||||
|
||||
public class GameHubSocket : Hub
|
||||
public class GameHubSocket(IGameManager gameManager) : Hub
|
||||
{
|
||||
private readonly IGameManager _gameManager = gameManager;
|
||||
|
||||
public async Task CreateGame(string playerName)
|
||||
{
|
||||
// TODO: create
|
||||
|
||||
Reference in New Issue
Block a user