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
Namespace: Unity.Services.Lobbies
Assembly: Unity.Services.Multiplayer.dll
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 bool Added { get; }
Property Value
Type | Description |
---|---|
bool |
ChangeType
Whether this is a change, a removal, or an addition.
Declaration
public readonly LobbyValueChangeType ChangeType { get; }
Property Value
Type | Description |
---|---|
LobbyValueChangeType |
Changed
True if a change has occurred, false if there has been no change. Removed and Changed properties are mutually exclusive.
Declaration
public bool Changed { get; }
Property Value
Type | Description |
---|---|
bool |
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 bool Removed { get; }
Property Value
Type | Description |
---|---|
bool |
Value
The new value provided by the change.
Declaration
public readonly T Value { get; }
Property Value
Type | Description |
---|---|
T |