Interface ILobbyChanges
An interface providing a set of changes to apply to a lobby model.
Namespace: Unity.Services.Lobbies
Syntax
public interface ILobbyChanges
Properties
AvailableSlots
The change to the available slots in the lobby, if it has changed.
Declaration
ChangedLobbyValue<int> AvailableSlots { get; }
Property Value
Type | Description |
---|---|
ChangedLobbyValue<System.Int32> |
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<System.Collections.Generic.Dictionary<System.String, ChangedOrRemovedLobbyValue<DataObject>>> |
HasPassword
The change for if HasPassword has changed.
Declaration
ChangedLobbyValue<bool> HasPassword { get; }
Property Value
Type | Description |
---|---|
ChangedLobbyValue<System.Boolean> |
HostId
The changes to the lobby’s host ID, if it has changed.
Declaration
ChangedLobbyValue<string> HostId { get; }
Property Value
Type | Description |
---|---|
ChangedLobbyValue<System.String> |
IsLocked
The change for if the lobby is locked, if it has changed.
Declaration
ChangedLobbyValue<bool> IsLocked { get; }
Property Value
Type | Description |
---|---|
ChangedLobbyValue<System.Boolean> |
IsPrivate
The change for if the lobby is private, if it has changed.
Declaration
ChangedLobbyValue<bool> IsPrivate { get; }
Property Value
Type | Description |
---|---|
ChangedLobbyValue<System.Boolean> |
LastUpdated
The time the lobby changes occurred.
Declaration
ChangedLobbyValue<DateTime> LastUpdated { get; }
Property Value
Type | Description |
---|---|
ChangedLobbyValue<System.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 |
---|---|
System.Boolean |
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<System.Int32> |
Name
The change to the lobby’s name, if it has changed.
Declaration
ChangedLobbyValue<string> Name { get; }
Property Value
Type | Description |
---|---|
ChangedLobbyValue<System.String> |
PlayerData
The changes to player’s data, if any have changed.
Declaration
ChangedLobbyValue<Dictionary<int, LobbyPlayerChanges>> PlayerData { get; }
Property Value
Type | Description |
---|---|
ChangedLobbyValue<System.Collections.Generic.Dictionary<System.Int32, LobbyPlayerChanges>> |
PlayerJoined
A list of players that have joined, if any.
Declaration
ChangedLobbyValue<List<LobbyPlayerJoined>> PlayerJoined { get; }
Property Value
Type | Description |
---|---|
ChangedLobbyValue<System.Collections.Generic.List<LobbyPlayerJoined>> |
PlayerLeft
A list of players that have left, if any.
Declaration
ChangedLobbyValue<List<int>> PlayerLeft { get; }
Property Value
Type | Description |
---|---|
ChangedLobbyValue<System.Collections.Generic.List<System.Int32>> |
Version
The changes to the lobby’s version, if it has changed.
Declaration
ChangedLobbyValue<int> Version { get; }
Property Value
Type | Description |
---|---|
ChangedLobbyValue<System.Int32> |
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. |