A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
PixoVRGameState.cpp
Go to the documentation of this file.
1// Copyright(c) Pixo Group. All Rights Reserved.
2
3#include "PixoVRGameState.h"
4#include "Net/UnrealNetwork.h"
5
7 : bIsGameSession(false)
8{
9}
10
11void APixoVRGameState::ServerStartGameSession_Implementation()
12{
13 bIsGameSession = true;
14}
15
16bool APixoVRGameState::ServerStartGameSession_Validate()
17{
18 return true;
19}
20
21void APixoVRGameState::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const
22{
23 Super::GetLifetimeReplicatedProps(OutLifetimeProps);
24 DOREPLIFETIME(APixoVRGameState, bIsGameSession);
25}
APixoVRGameState is a custom game state class that extends AGameState.
bool bIsGameSession
Indicates whether the game session has started.
virtual void GetLifetimeReplicatedProps(TArray< FLifetimeProperty > &OutLifetimeProps) const override