RapyutaSimulationPlugins
RRPakLoader.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 
16 
17 // UE
18 
19 #include "IPlatformFilePak.h"
20 
21 
22 
23 // RapyutaSimulationPlugins
24 
26 
27 
28 
29 #include "RRPakLoader.generated.h"
30 
31 
32 
33 class URRGameSingleton;
34 
35 
36 
52 class RAPYUTASIMULATIONPLUGINS_API URRPakLoader : public UObject
53 
54 {
55 
56 public:
57 
66  bool Initialize();
67 
68 
69 
82  bool LoadPAKFiles(const FString& InPakFolderPath, bool bInForceReload = false);
83 
84 
85 
98  bool LoadEntitiesPAKFiles(const FString& InPakFolderPath,
99 
100  const TArray<FString>& InEntityModelsNameList,
101 
102  bool bInForceReload = false);
103 
104 
105 
106 private:
107 
109 
110  FPakPlatformFile* PakManager = nullptr;
111 
112 
113 
114 
119  TObjectPtr<URRGameSingleton> RRGameSingleton = nullptr;
120 
121 
122 
133  void MountPAKFiles(const TArray<FString>& InPAKPaths, bool bInForceRemount = false);
134 
135 
136 
147  bool IsPAKFileAlreadyMounted(const FString& InPAKPath);
148 
149 };
150 
RapyutaSimulationPlugins.h
Unreal Engine Mudule class.
URRPakLoader
Pak loader.
Definition: RRPakLoader.h:52
URRGameSingleton
GameSingleton class which handles asset loading.
Definition: RRGameSingleton.h:144