v1.0.0
Latest
2022.3+

Class LobbyValue

Helper class for instantiating ChangedLobbyValue and ChangedOrRemovedLobbyValue!

Inheritance
System.Object
LobbyValue
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unity.Services.Lobbies
Syntax
public static class LobbyValue

Methods

Added<T>(T)

Provides an added lobby value.

Declaration
public static ChangedLobbyValue<T> Added<T>(T value)
Parameters
TypeNameDescription
Tvalue

The new value.

Returns
TypeDescription
ChangedLobbyValue<T>

An added lobby value.

Type Parameters
NameDescription
T

The type of the value to add.

ChangeAdded<T>(T)

Instantiates an added lobby value.

Declaration
public static ChangedOrRemovedLobbyValue<T> ChangeAdded<T>(T value)
Parameters
TypeNameDescription
Tvalue

The value of the addition.

Returns
TypeDescription
ChangedOrRemovedLobbyValue<T>

An added lobby value.

Type Parameters
NameDescription
T

The type of the value to add.

Changed<T>(T)

Instantiates a changed lobby value.

Declaration
public static ChangedLobbyValue<T> Changed<T>(T value)
Parameters
TypeNameDescription
Tvalue

The new value it has changed to.

Returns
TypeDescription
ChangedLobbyValue<T>

A changed lobby value.

Type Parameters
NameDescription
T

The type of the value to change.

ChangedNotRemoved<T>(T)

Instantiates a changed lobby value.

Declaration
public static ChangedOrRemovedLobbyValue<T> ChangedNotRemoved<T>(T value)
Parameters
TypeNameDescription
Tvalue

The new value it has changed to.

Returns
TypeDescription
ChangedOrRemovedLobbyValue<T>

A changed lobby value.

Type Parameters
NameDescription
T

The type of the value to change.

Removed<T>()

Provides a removed lobby value.

Declaration
public static ChangedOrRemovedLobbyValue<T> Removed<T>()
Returns
TypeDescription
ChangedOrRemovedLobbyValue<T>

A removed lobby value.

Type Parameters
NameDescription
T

The type of the value to remove.