docs.unity3d.com
    Show / Hide Table of Contents

    Interface IServerQueryHandler

    The interface for setting the current data supplied to the Multiplay Service via the Server Query Handler.

    Inherited Members
    IDisposable.Dispose()
    Namespace: Unity.Services.Multiplay
    Syntax
    public interface IServerQueryHandler : IDisposable

    Properties

    BuildId

    The version of the game.

    Declaration
    string BuildId { get; set; }
    Property Value
    Type Description
    String

    CurrentPlayers

    The number of players currently on the server.

    Declaration
    ushort CurrentPlayers { get; set; }
    Property Value
    Type Description
    UInt16

    GameType

    The name or identifier of the game type the server is running.

    Declaration
    string GameType { get; set; }
    Property Value
    Type Description
    String

    Map

    The map or world the server is running for the game.

    Declaration
    string Map { get; set; }
    Property Value
    Type Description
    String

    MaxPlayers

    The maximum number of players on the server.

    Declaration
    ushort MaxPlayers { get; set; }
    Property Value
    Type Description
    UInt16

    Port

    The game port that game clients connect to.

    Declaration
    ushort Port { get; set; }
    Property Value
    Type Description
    UInt16

    ServerName

    The name for the server.

    Declaration
    string ServerName { get; set; }
    Property Value
    Type Description
    String

    Methods

    UpdateServerCheck()

    Updates the servercheck values for the server. This is expected to be called in an update loop.

    Declaration
    void UpdateServerCheck()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023