private void HandleIsPlayerReady(Message message) { ushort id; bool isReady; using (DarkRiftReader reader = message.GetReader()) { id = reader.ReadUInt16(); isReady = reader.ReadBoolean(); } _lobbyStateManager.SetReady(id, isReady); _lobbyMessageSender.SendUpdateLobbyMessage(); }
public void RefreshLobby() { _lobbySender.SendUpdateLobbyMessage(); }