/// <summary>
        /// Gets the lobby's properties
        /// </summary>
        public LobbyProperties GetLobbyProperties()
        {
            RequestLobbyProperties();
            GetLobbyPropertiesEvent lobbyPropertiesEvent = base.WaitForServerEvent <GetLobbyPropertiesEvent>(Timeout);

            if (lobbyPropertiesEvent == null)
            {
                return(null);
            }

            return(lobbyPropertiesEvent.LobbyProperties);
        }
Exemple #2
0
        /// <summary>
        /// Processes the lobby properties
        /// </summary>
        /// <param name="connectionBase">The connection base</param>
        /// <param name="message">The playerio message</param>
        /// <param name="handled">Whether the message was already handled</param>
        public void Process(ConnectionBase connectionBase, Message message, bool handled)
        {
            bool firstDailyLogin = message.GetBoolean(0);

            LobbyProperties lobbyProps = new LobbyProperties(firstDailyLogin);

            GetLobbyPropertiesEvent lobbyPropertiesMessage = new GetLobbyPropertiesEvent()
            {
                LobbyProperties = lobbyProps,
                Raw             = message
            };

            connectionBase.RaiseServerEvent <GetLobbyPropertiesEvent>(lobbyPropertiesMessage);
        }