private void onGalaxyLobbyCreated(GalaxyID lobbyID, LobbyCreateResult result) { if (result == LobbyCreateResult.LOBBY_CREATE_RESULT_ERROR) { Console.WriteLine("Failed to create lobby."); recreateTimer = getTimeNow() + 20000; } }
public override void OnLobbyCreated(GalaxyID lobbyID, LobbyCreateResult _result) { switch (_result) { case LobbyCreateResult.LOBBY_CREATE_RESULT_SUCCESS: LobbyCreated(lobbyID); break; case LobbyCreateResult.LOBBY_CREATE_RESULT_ERROR: Timeout(); break; } }
private void onGalaxyLobbyCreated(GalaxyID lobbyID, LobbyCreateResult result) { if (result != LobbyCreateResult.LOBBY_CREATE_RESULT_ERROR) { return; } Console.WriteLine("Failed to create lobby."); if (Game1.chatBox != null && isFirstRecreateAttempt) { if (isRecreatedLobby) { Game1.chatBox.addInfoMessage(Game1.content.LoadString("Strings\\UI:Chat_LobbyCreateFail")); } else { Game1.chatBox.addInfoMessage(Game1.content.LoadString("Strings\\UI:Chat_LobbyCreateFail")); } } recreateTimer = getTimeNow() + 20000; isRecreatedLobby = true; isFirstRecreateAttempt = false; }
public override void OnLobbyCreated(GalaxyID lobbyID, LobbyCreateResult _result) { if (_result != LobbyCreateResult.LOBBY_CREATE_RESULT_SUCCESS) { Debug.Log("LobbyCreatedListenerCreation failed"); GameObject.Find("MainMenu").GetComponent <MainMenuController>().SwitchMenu(MainMenuController.MenuEnum.OnlineCreate); GameObject.Find("PopUps").GetComponent <PopUps>().PopUpWithClosePopUpsButton("Could not create lobby\nReason: " + _result.ToString(), "back"); return; } Debug.Log("LobbyCreatedListenerCreation succeded"); matchmaking.SetLobbyData(lobbyID, "name", matchmaking.lobbyName); matchmaking.SetLobbyData(lobbyID, "state", "notReady"); matchmaking.CurrentLobbyID = lobbyID; matchmaking.LobbyOwnerID = matchmaking.GetLobbyOwner(lobbyID); matchmaking.SetLobbyMemberData("state", "notReady"); GameObject.Find("MainMenu").GetComponent <MainMenuController>().SwitchMenu(MainMenuController.MenuEnum.OnlineWait); friends.SetRichPresence("status", "In online lobby"); friends.SetRichPresence("connect", "--JoinLobby=" + lobbyID); matchmaking.LobbyManagmentMainMenuListenersInit(); matchmaking.LobbyChatListenersInit(); matchmaking.LobbyCreationListenersDispose(); }
public override void OnLobbyCreated(GalaxyID lobbyID, LobbyCreateResult result) { callback(lobbyID, result); }