docs.unity3d.com
    Show / Hide Table of Contents

    Struct ChangedOrRemovedLobbyValue<T>

    Contains whether or not a particular change or removal has occurred. If a change has occurred, also provides the value of the change.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Services.Lobbies
    Syntax
    public struct ChangedOrRemovedLobbyValue<T>
    Type Parameters
    Name Description
    T

    The type of the value of the change.

    Constructors

    ChangedOrRemovedLobbyValue(T, LobbyValueChangeType)

    Creates a changed or removed value.

    Declaration
    public ChangedOrRemovedLobbyValue(T value, LobbyValueChangeType status)
    Parameters
    Type Name Description
    T value

    The new value provided by the change.

    LobbyValueChangeType status

    The status of this change.

    Fields

    RemoveThisValue

    A helper for providing a removal of the value without having to call a constructor.

    Declaration
    public static readonly ChangedOrRemovedLobbyValue<T> RemoveThisValue
    Field Value
    Type Description
    ChangedOrRemovedLobbyValue<T>

    Properties

    Added

    True if the value was newly added, false otherwise. Removed and Added properties are mutually exclusive.

    Declaration
    public readonly bool Added { get; }
    Property Value
    Type Description
    Boolean

    Changed

    True if a change has occurred, false if there has been no change. Removed and Changed properties are mutually exclusive.

    Declaration
    public readonly bool Changed { get; }
    Property Value
    Type Description
    Boolean

    ChangeType

    Whether this is a change, a removal, or an addition.

    Declaration
    public readonly LobbyValueChangeType ChangeType { get; }
    Property Value
    Type Description
    LobbyValueChangeType

    Removed

    True if the value has been removed, false if it hasn't been removed. Removed properties are mutually exclusive with Changed and Added properties.

    Declaration
    public readonly bool Removed { get; }
    Property Value
    Type Description
    Boolean

    Value

    The new value provided by the change.

    Declaration
    public readonly T Value { get; }
    Property Value
    Type Description
    T
    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