RapyutaSimulationPlugins
RRGameInstance.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 
16 
17 // UE
18 
19 #include "CoreMinimal.h"
20 
21 #include "Engine/GameInstance.h"
22 
23 
24 
25 // RapyutaSimulationPlugins
26 
27 #include "Core/RRActorCommon.h"
28 
29 #include "Core/RRGameMode.h"
30 
31 
32 
33 #include "RRGameInstance.generated.h"
34 
35 
36 
54 class RAPYUTASIMULATIONPLUGINS_API URRGameInstance : public UGameInstance
55 
56 {
57 
58 
59 
60 public:
61 
63 
64  static FString SMapName;
65 
66 
67 
68  virtual void PreloadContentForURL(FURL InURL) override;
69 
70 
71 
86  virtual class AGameModeBase* CreateGameModeForURL(FURL InURL, UWorld* InWorld) override;
87 
88 
89 
90  virtual void StartGameInstance() override;
91 
92 
93 
102  virtual void Init() override;
103 
104 
105 
106 
111  virtual void LoadComplete(const float InLoadTime, const FString& InMapName) override;
112 
113 
114 
115 protected:
116 
117  void OnStart() override;
118 
119 };
120 
URRGameInstance
This is a globally accessible instanced UObject that can store run-time data to be commonly accessed ...
Definition: RRGameInstance.h:54
RRActorCommon.h
Asset utils.
RRGameMode.h
GameMode with specific setting and asset loading.
URRGameInstance::SMapName
static FString SMapName
Store the World name.
Definition: RRGameInstance.h:64