A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
PixoVRGameState.h
Go to the documentation of this file.
1// Copyright(c) Pixo Group. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/GameState.h"
7#include "PixoVRGameState.generated.h"
8
12UCLASS()
13class PIXOCORE_API APixoVRGameState : public AGameState
14{
15 GENERATED_BODY()
16
17public:
19
23 UFUNCTION(Server, Reliable, WithValidation)
24 void ServerStartGameSession();
25
30 UFUNCTION(BlueprintCallable, Category = "Session")
31 bool HasGameSessionStarted() const { return bIsGameSession; }
32
33 virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
34
35private:
39 UPROPERTY(Replicated)
40 bool bIsGameSession;
41};
APixoVRGameState is a custom game state class that extends AGameState.
bool bIsGameSession
Indicates whether the game session has started.
void ServerStartGameSession()
Server-side function to start the game session.
bool HasGameSessionStarted() const
Checks if the game session has started.