docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BulkUpdateRequest

    The body of a Bulk Update request.

    Inheritance
    object
    BulkUpdateRequest
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.Lobbies
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class BulkUpdateRequest

    Constructors

    BulkUpdateRequest(UpdateRequest, Dictionary<string, PlayerUpdateRequest>, List<Player>, List<string>, bool?)

    Initializes a new instance of the BulkUpdateRequest class.

    Declaration
    [Preserve]
    public BulkUpdateRequest(UpdateRequest lobbyUpdate = null, Dictionary<string, PlayerUpdateRequest> playerUpdates = null, List<Player> playersToAdd = null, List<string> playersToRemove = null, bool? ignoreIneffectualUpdates = false)
    Parameters
    Type Name Description
    UpdateRequest lobbyUpdate

    lobbyUpdate.

    Dictionary<string, PlayerUpdateRequest> playerUpdates

    A mapping from player IDs to player update requests..

    List<Player> playersToAdd

    An array of players to add to the lobby..

    List<string> playersToRemove

    An array of player IDs to remove from the lobby..

    bool? ignoreIneffectualUpdates

    Whether or not to silently ignore ineffectual updates (i.e. removing or updating players who are not in the lobby) instead of failing. (default to false).

    Properties

    IgnoreIneffectualUpdates

    Whether or not to silently ignore ineffectual updates (i.e. removing or updating players who are not in the lobby) instead of failing.

    Declaration
    [Preserve]
    public bool? IgnoreIneffectualUpdates { get; set; }
    Property Value
    Type Description
    bool?

    Whether or not to silently ignore ineffectual updates (i.e. removing or updating players who are not in the lobby) instead of failing.

    LobbyUpdate

    Gets or Sets LobbyUpdate

    Declaration
    [Preserve]
    public UpdateRequest LobbyUpdate { get; set; }
    Property Value
    Type Description
    UpdateRequest

    PlayerUpdates

    A mapping from player IDs to player update requests.

    Declaration
    [Preserve]
    public Dictionary<string, PlayerUpdateRequest> PlayerUpdates { get; set; }
    Property Value
    Type Description
    Dictionary<string, PlayerUpdateRequest>

    A mapping from player IDs to player update requests.

    PlayersToAdd

    An array of players to add to the lobby.

    Declaration
    [Preserve]
    public List<Player> PlayersToAdd { get; set; }
    Property Value
    Type Description
    List<Player>

    An array of players to add to the lobby.

    PlayersToRemove

    An array of player IDs to remove from the lobby.

    Declaration
    [Preserve]
    public List<string> PlayersToRemove { get; set; }
    Property Value
    Type Description
    List<string>

    An array of player IDs to remove from the lobby.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)