Interface ILobbyChanges
An interface providing a set of changes to apply to a lobby model.
Namespace: Unity.Services.Lobbies
Assembly: Unity.Services.Multiplayer.dll
Syntax
public interface ILobbyChangesProperties
AvailableSlots
The change to the available slots in the lobby, if it has changed.
Declaration
ChangedLobbyValue<int> AvailableSlots { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<int> | 
Data
The changes to the lobby’s data, if it has changed.
Declaration
ChangedOrRemovedLobbyValue<Dictionary<string, ChangedOrRemovedLobbyValue<DataObject>>> Data { get; }Property Value
| Type | Description | 
|---|---|
| ChangedOrRemovedLobbyValue<Dictionary<string, ChangedOrRemovedLobbyValue<DataObject>>> | 
HasPassword
The change for if HasPassword has changed.
Declaration
ChangedLobbyValue<bool> HasPassword { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<bool> | 
HostId
The changes to the lobby’s host ID, if it has changed.
Declaration
ChangedLobbyValue<string> HostId { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<string> | 
IsLocked
The change for if the lobby is locked, if it has changed.
Declaration
ChangedLobbyValue<bool> IsLocked { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<bool> | 
IsPrivate
The change for if the lobby is private, if it has changed.
Declaration
ChangedLobbyValue<bool> IsPrivate { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<bool> | 
LastUpdated
The time the lobby changes occurred.
Declaration
ChangedLobbyValue<DateTime> LastUpdated { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<DateTime> | 
LobbyDeleted
Whether or not the lobby was deleted. True if the lobby was deleted. False if it is still available.
Declaration
bool LobbyDeleted { get; }Property Value
| Type | Description | 
|---|---|
| bool | 
MaxPlayers
The change to the maximum number of players in the lobby, if it has changed.
Declaration
ChangedLobbyValue<int> MaxPlayers { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<int> | 
Name
The change to the lobby’s name, if it has changed.
Declaration
ChangedLobbyValue<string> Name { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<string> | 
PlayerData
The changes to player’s data, if any have changed.
Declaration
ChangedLobbyValue<Dictionary<int, LobbyPlayerChanges>> PlayerData { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<Dictionary<int, LobbyPlayerChanges>> | 
PlayerJoined
A list of players that have joined, if any.
Declaration
ChangedLobbyValue<List<LobbyPlayerJoined>> PlayerJoined { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<List<LobbyPlayerJoined>> | 
PlayerLeft
A list of players that have left, if any.
Declaration
ChangedLobbyValue<List<int>> PlayerLeft { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<List<int>> | 
Version
The changes to the lobby’s version, if it has changed.
Declaration
ChangedLobbyValue<int> Version { get; }Property Value
| Type | Description | 
|---|---|
| ChangedLobbyValue<int> | 
Methods
ApplyToLobby(Lobby)
Takes a lobby and a change applicator to update a given lobby in-place. If LobbyDeleted is true, no changes will be applied and a warning will be logged.
Declaration
void ApplyToLobby(Lobby lobby)Parameters
| Type | Name | Description | 
|---|---|---|
| Lobby | lobby | The lobby model to apply the changes to. |