Search Results for

    Show / Hide Table of Contents

    Interface IRoomInfo

    Defines the basic information of a network room.

    Namespace: Evergine.Networking.Rooms
    Assembly: Evergine.Networking.dll
    Syntax
    public interface IRoomInfo

    Properties

    IsFull

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

    Declaration
    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
    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
    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
    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
    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.

    Extension Methods

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