Search Results for

    Show / Hide Table of Contents

    Class RoomInfo

    This class represents the info of a room in the lobby.

    Inheritance
    object
    RoomInfo
    Implements
    IRoomInfo
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Networking.Rooms
    Assembly: Evergine.Networking.dll
    Syntax
    public class RoomInfo : IRoomInfo

    Properties

    IsFull

    Gets a value indicating whether the room is full and therefore, no more players can join it.

    Declaration
    public bool IsFull { get; }
    Property Value
    Type Description
    bool

    MaxPlayers

    Gets the limit of players for this room. This property is shown in lobby, too. If the room is full (players count == maxplayers), joining this room will fail.

    Declaration
    public byte MaxPlayers { get; }
    Property Value
    Type Description
    byte
    Remarks

    If the player has joined the room, the setter will update the server and all clients.

    Name

    Gets the name of a room. Unique identifier for a room/match (per AppId + game-Version).

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string
    Remarks

    The name can't be changed once it's set by the matchmaking server.

    PlayerCount

    Gets the count of players currently in room.

    Declaration
    public byte PlayerCount { get; }
    Property Value
    Type Description
    byte

    PropertiesListedInLobby

    Gets a set of string properties that are in the RoomInfo of the Lobby. This list is defined when creating the room and can't be changed afterwards.

    Declaration
    public HashSet<string> PropertiesListedInLobby { get; }
    Property Value
    Type Description
    HashSet<string>
    Remarks

    You could name properties that are not set from the beginning. Those will be synchronized with the lobby when added later on.

    Methods

    WriteSyncMessage(OutgoingMessage, RoomInfoFieldsFlags)

    Writes the properties to be sync on an outgoing message.

    Declaration
    protected void WriteSyncMessage(OutgoingMessage message, RoomInfo.RoomInfoFieldsFlags includedFields)
    Parameters
    Type Name Description
    OutgoingMessage message

    The outgoing message.

    RoomInfo.RoomInfoFieldsFlags includedFields

    Indicates the fields that must synchronized.

    Implements

    IRoomInfo

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX