Table of Contents

LobbyReservations

class in Coherence.Cloud

Describes lobby slots reserved for specific players, such as the other members of a party.

Remarks

Reserved slots count against MaxPlayers and prevent other players from filling them, until either a reserved player joins (consuming their reservation) or Timeout elapses (which releases the slot back to anyone). A reservation only keeps a slot free: the reserved player still joins on their own, and still needs the lobby's password or an invite if it has one.

Slots can be reserved when creating, finding or joining a lobby, or later through ReserveSlotsAsync(LobbyReservations, CancellationToken). When finding or joining, the caller joins and the slots are reserved in a single step: if the lobby lacks room for the whole party, the request fails with ErrorCode.LobbyFull and nobody joins. Reserving slots in an existing lobby is limited by its MaxReservationsPerRequest.

Players already in the lobby, or who already have a reservation, are skipped, so every member of a party can send the same reservations at once, or retry, without reserving extra slots. An existing reservation keeps its original expiry.

Constructors
LobbyReservations
Properties
PlayerAccountIds

Players for whom a slot will be reserved.

Timeout

How long each reservation lasts, if the reserved player doesn't join in time.