Completing Reservations
How To Complete Reservations

#include "KronosReservationManager.h"
#include "GameFramework/PlayerState.h"void AMyGameModeBase::InitSeamlessTravelPlayer(AController* NewController)
{
Super::InitSeamlessTravelPlayer(NewController);
// Make sure that the player state is valid.
if (NewController->PlayerState)
{
// Get the reservation manager.
UKronosReservationManager* ReservationManager = UKronosReservationManager::Get(this);
// Check if we are managing reservations.
if (ReservationManager->IsReservationHost())
{
// Complete the reservation of the player.
ReservationManager->CompleteReservation(NewController->PlayerState->GetUniqueId());
}
}
}Last updated