Exemplo n.º 1
0
        /// <summary>
        /// Enables you to define the properties available in the lobby if not all properties are needed to pick a room.
        /// </summary>
        /// <remarks>
        /// Limit the amount of properties sent to users in the lobby as this improves speed and stability.
        /// </remarks>
        /// <param name="propsToListInLobby">An array of custom room property names to forward to the lobby.</param>
        public void SetPropertiesListedInLobby(string[] propsToListInLobby)
        {
            var customProps = new Hashtable {
                [GamePropertyKey.PropsListedInLobby] = propsToListInLobby
            };

            var sent = LoadBalancingClient.OpSetPropertiesOfRoom(customProps, false);

            if (sent)
            {
                propsListedInLobby = propsToListInLobby;
            }
        }