draw works
This commit is contained in:
@@ -24,8 +24,8 @@ public class Room
|
||||
while (!result.CloseStatus.HasValue)
|
||||
{
|
||||
var slicedBuffer = buffer[0..result.Count];
|
||||
var playedCard = JsonSerializer.Deserialize<CardDTO>(slicedBuffer).ToCard();
|
||||
_game.PlayCard(socketId, playedCard);
|
||||
var action = JsonSerializer.Deserialize<ActionDTO>(slicedBuffer);
|
||||
_game.handleAction(socketId, action);
|
||||
BroadcastGameState();
|
||||
buffer = EmptyBuffer();
|
||||
result = await ReceiveAsync(socket, buffer);
|
||||
|
||||
Reference in New Issue
Block a user