Refactor GameRepository and GameManager architecture, introduce Player model, and update dependency registration in Program.cs.

This commit is contained in:
2026-02-28 23:06:54 +01:00
committed by Jonas
parent b967bd70eb
commit 0e7bfb7241
11 changed files with 96 additions and 27 deletions
+4 -1
View File
@@ -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