[FIX] merge stuff
This commit is contained in:
@@ -87,7 +87,8 @@ namespace Client
|
|||||||
|
|
||||||
private void joinLobby()
|
private void joinLobby()
|
||||||
{
|
{
|
||||||
|
// lobby die je wilt joinen verwijderen
|
||||||
|
// nieuwe binnengekregen lobby toevoegen
|
||||||
client.OnLobbyJoinSuccess = OnLobbyJoinSuccess;
|
client.OnLobbyJoinSuccess = OnLobbyJoinSuccess;
|
||||||
client.SendMessage(JSONConvert.ConstructLobbyJoinMessage(SelectedLobby.ID));
|
client.SendMessage(JSONConvert.ConstructLobbyJoinMessage(SelectedLobby.ID));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -188,16 +188,11 @@ namespace Server.Models
|
|||||||
break;
|
break;
|
||||||
case LobbyIdentifier.JOIN:
|
case LobbyIdentifier.JOIN:
|
||||||
int id = JSONConvert.GetLobbyID(payload);
|
int id = JSONConvert.GetLobbyID(payload);
|
||||||
ServerCommunication.INSTANCE.JoinLobby(this.User, id);
|
|
||||||
sendMessage(JSONConvert.ConstructLobbyJoinSuccessMessage());
|
|
||||||
|
|
||||||
bool isHost;
|
bool isHost;
|
||||||
ServerCommunication.INSTANCE.JoinLobby(this.User,id, out isHost);
|
ServerCommunication.INSTANCE.JoinLobby(this.User,id, out isHost);
|
||||||
sendMessage(JSONConvert.ConstructLobbyJoinSuccessMessage(isHost));
|
sendMessage(JSONConvert.ConstructLobbyJoinSuccessMessage(isHost));
|
||||||
ServerCommunication.INSTANCE.sendToAll(JSONConvert.ConstructLobbyListMessage(ServerCommunication.INSTANCE.lobbies.ToArray()));
|
ServerCommunication.INSTANCE.sendToAll(JSONConvert.ConstructLobbyListMessage(ServerCommunication.INSTANCE.lobbies.ToArray()));
|
||||||
|
|
||||||
//Task.Run(SendLobbyData);
|
|
||||||
|
|
||||||
serverCom.sendToAll(JSONConvert.GetMessageToSend(JSONConvert.RANDOMWORD, new
|
serverCom.sendToAll(JSONConvert.GetMessageToSend(JSONConvert.RANDOMWORD, new
|
||||||
{
|
{
|
||||||
id = serverCom.GetLobbyForUser(User).ID,
|
id = serverCom.GetLobbyForUser(User).ID,
|
||||||
|
|||||||
Reference in New Issue
Block a user