Merge pull request #13 from SemvdH/feature/timer

Feature/timer
This commit is contained in:
SemvdH
2020-10-23 15:45:12 +02:00
committed by GitHub
4 changed files with 88 additions and 6 deletions

View File

@@ -209,6 +209,17 @@ namespace Client
default:
Debug.WriteLine("[CLIENT] Received weird identifier: " + id);
break;
case JSONConvert.GAME:
switch (JSONConvert.GetGameCommand(payload))
{
case JSONConvert.GameCommand.TIMER_ELAPSED:
int lobbyElapsedID = JSONConvert.GetLobbyID(payload);
//todo set next round
break;
}
break;
}
SendMessage(JSONConvert.GetMessageToSend(JSONConvert.MESSAGE_RECEIVED,null));