v1.0.0
Latest
2022.3+
Struct ChangedLobbyValue<T>
Contains whether or not a particular change has occurred, and if it has, the value of the change.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Unity.Services.Lobbies
Syntax
public struct ChangedLobbyValue<T>
Type Parameters
Name | Description |
---|---|
T | The type of the value of the change. |
Constructors
ChangedLobbyValue(T)
Creates a changed value.
Declaration
public ChangedLobbyValue(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The new value provided by the change. |
Properties
Added
True if the value is new, false otherwise. An Added value is necessarily a Changed value.
Declaration
public bool Added { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Changed
True if a change has occurred, false if there has been no change. Changed value may or may not be an added value
Declaration
public readonly bool Changed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Value
The new value provided by the change.
Declaration
public readonly T Value { get; }
Property Value
Type | Description |
---|---|
T |