The Host Reservation
Last updated
Last updated
The Host Reservation is a set of reservations that will be registered immediately when a KronosReservationHost
is created.
In order to keep the reservation system in sync with the session, the Host Reservation must be set properly before changing maps (e.g. from lobby to game).
You must set the Host Reservation before changing maps in online matches.
Imagine that you are hosting a match for your friends. After finishing the current match, you simply want to change maps and continue playing. The issue is that your KronosReservationHost
beacon will be destroyed once you begin changing maps, and your friends who are already in the session won't request a reservation again since they are already in the session. So in order to keep the reservation system in sync with the session, you (the host) must set the host reservation to one that includes everyone in the current match before initiating the map change.
Use the SetHostReservations
in combination with the CopyRegisteredReservations
function before changing maps in online matches (e.g. from lobby to game) to ensure that all players will have a valid reservation when they attempt join the new map.
If the Host Reservation is empty, a reservation will be made for the local player automatically. Once it is register it will be consume - meaning it is reset into an empty reservation.