draw works

This commit is contained in:
2023-03-21 12:25:14 +01:00
parent e9ca9a085e
commit bae605da54
3 changed files with 47 additions and 5 deletions

View File

@@ -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);