RapyutaSimulationPlugins
Public Member Functions | Private Member Functions | Private Attributes | List of all members
URRPakLoader Class Reference

Pak loader. More...

#include <RRPakLoader.h>

Inheritance diagram for URRPakLoader:
Inheritance graph
[legend]
Collaboration diagram for URRPakLoader:
Collaboration graph
[legend]

Public Member Functions

bool Initialize ()
 Initialize PakManager. More...
 
bool LoadPAKFiles (const FString &InPakFolderPath, bool bInForceReload=false)
 Load PAK files. More...
 
bool LoadEntitiesPAKFiles (const FString &InPakFolderPath, const TArray< FString > &InEntityModelsNameList, bool bInForceReload=false)
 Load PAK files of a specific set of entity models. More...
 

Private Member Functions

void MountPAKFiles (const TArray< FString > &InPAKPaths, bool bInForceRemount=false)
 Mount PAK paths to files on disk. More...
 
bool IsPAKFileAlreadyMounted (const FString &InPAKPath)
 Check if a PAK path is already mounted. More...
 

Private Attributes

FPakPlatformFile * PakManager = nullptr
 Pak file manager, responsible for loading & mounting paks. More...
 
TObjectPtr< URRGameSingletonRRGameSingleton = nullptr
 

Detailed Description

Pak loader.

UCLASS()

Member Function Documentation

◆ Initialize()

bool URRPakLoader::Initialize ( )

Initialize PakManager.

Returns
true/false

◆ IsPAKFileAlreadyMounted()

bool URRPakLoader::IsPAKFileAlreadyMounted ( const FString &  InPAKPath)
private

Check if a PAK path is already mounted.

Parameters
InPAKPath
Returns
true/false

◆ LoadEntitiesPAKFiles()

bool URRPakLoader::LoadEntitiesPAKFiles ( const FString &  InPakFolderPath,
const TArray< FString > &  InEntityModelsNameList,
bool  bInForceReload = false 
)

Load PAK files of a specific set of entity models.

Parameters
InEntityModelsNameList
bInForceReload
Returns
true/false

◆ LoadPAKFiles()

bool URRPakLoader::LoadPAKFiles ( const FString &  InPakFolderPath,
bool  bInForceReload = false 
)

Load PAK files.

Parameters
InPakFolderPath
bInForceReload
Returns
true/false

◆ MountPAKFiles()

void URRPakLoader::MountPAKFiles ( const TArray< FString > &  InPAKPaths,
bool  bInForceRemount = false 
)
private

Mount PAK paths to files on disk.

Parameters
InPAKPaths
bInForceRemountIf true, unmount already-mounted PAK before mounting it again, otherwise skip

Member Data Documentation

◆ PakManager

FPakPlatformFile* URRPakLoader::PakManager = nullptr
private

Pak file manager, responsible for loading & mounting paks.

◆ RRGameSingleton

TObjectPtr<URRGameSingleton> URRPakLoader::RRGameSingleton = nullptr
private

The documentation for this class was generated from the following file: