Added Backend Classes and FUnctions for an working Game. But lacking Implementations
This commit is contained in:
@@ -2,9 +2,9 @@ using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace API.Controllers;
|
||||
|
||||
public class GameController : Hub
|
||||
public class GameHubSocket : Hub
|
||||
{
|
||||
public async Task JoinGame(string gameId, string playerName)
|
||||
public async Task CreateGame(string playerName, )
|
||||
{
|
||||
await Groups.AddToGroupAsync(Context.ConnectionId, gameId);
|
||||
await Clients.Group(gameId).SendAsync("PlayerJoined", new
|
||||
@@ -13,4 +13,9 @@ public class GameController : Hub
|
||||
PlayerName = playerName
|
||||
});
|
||||
}
|
||||
|
||||
public async Task JoinGame(string gameId, string playerName)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user