/// <summary>Sets the ready.</summary> public void SetReady() { ClientManager.Instance.playersInSession[ClientManager.Instance.MyID].Status = 1; ReadyEnabled = "False"; PacketSend.ClientStatus(1); }
/// <summary>Queues the user again by reconnecting them to the lobby.</summary> public void queueAgain() { ClientManager.Instance.playersInSession[ClientManager.Instance.MyID].ResetState(); PacketSend.ClientStatus(0); mainWindow.SetNewView(Screens.MULTIPLAYER_MENU_RC); }
/// <summary>Handles the MultiplayerNewGameEvent event.</summary> /// <param name="message">The message.</param> public void Handle(MultiplayerNewGameEvent message) { ClientManager.Instance.playersInSession[ClientManager.Instance.MyID].Status = 2; myEvents.getAggregator().Unsubscribe(this); PacketSend.ClientStatus(2); LoadMultiPlayer(); }