| TSharedFromThis
|
Module |
|
Header |
/Engine/Plugins/Runtime/ChunkDownloader/Source/Public/ChunkDownloader.h |
Include |
#include "ChunkDownloader.h" |
class FChunkDownloader : public TSharedFromThis< FChunkDownloader >
Name | Description | ||
---|---|---|---|
|
OnChunkMounted |
Called whenever a chunk mounts (success or failure). ONLY USE THIS IF YOU WANT TO PASSIVELY LISTEN FOR MOUNTS (otherwise use the proper request callback on MountChunk) |
|
|
OnDownloadAnalytics |
Called each time a download attempt finishes (success or failure). ONLY USE THIS IF YOU WANT TO PASSIVELY LISTEN. Downloads retry until successful. |
Name | Description | |
---|---|---|
|
FChunkDownloader() |
Name | Description | |
---|---|---|
|
~FChunkDownloader() |
Name | Description | ||
---|---|---|---|
|
BeginLoadingMode ( |
Snapshot stats and enter into loading screen mode (pauses all background downloads). |
|
|
CheckFileSha1Hash |
||
|
const TCHAR ... |
ChunkStatusToString ( |
Chunk status as logable string |
|
DownloadChunk |
Download all pak files in the chunk, but don't mount. |
|
|
DownloadChunks |
Download (Cache) all pak files in these chunks then fire the callback (convenience wrapper managing multiple DownloadChunk calls) |
|
|
DumpLoadedChunks() |
||
|
Finalize() |
Unmount all chunks and cancel any downloads in progress (preserving partial downloads). |
|
|
int |
FlushCache() |
Flush any cached files (on disk) that are not currently being downloaded to or mounting (does not unmount the corresponding pak files). |
|
TSharedPtr< ... |
Get() |
Static getters |
|
GetAllChunkIds |
Return a list of all chunk IDs in the current manifest |
|
|
TSharedRef< ... |
GetChecked() |
Static getters |
|
GetChunkStatus ( |
Get the current status of the specified chunk |
|
|
const FStrin... |
GetContentBuildId() |
Get the current content build ID |
|
const FStrin... |
GetDeploymentName() |
Get the most recent deployment name |
|
const FStats... |
GetLoadingStats() |
Get the current loading stats (generally only useful if you're in loading mode see BeginLoadingMode) |
|
TSharedRef< ... |
GetOrCreate() |
Static getters |
|
Initialize |
Initialize the download manager (populates the list of cached pak files from disk). Call only once. |
|
|
LoadCachedBuild ( |
Try to load a cached build ID from disk (good to do before updating build so it can possibly no-op) |
|
|
MountChunk |
Download all pak files, then asynchronously mount them in order (in order among themselves, async with game thread). |
|
|
MountChunks |
Download and mount all chunks then fire the callback (convenience wrapper managing multiple MountChunk calls) |
|
|
Shutdown() |
||
|
UpdateBuild |
Set the the content build id if the content build id has changed, we pull the new BuildManifest from CDN and load it. |
|
|
int |
ValidateCache() |
Validate all fully cached files (blocking) by attempting to read them and check their Version hash. |
Name |
Description |
|
---|---|---|
|
FMultiCallback |
|
|
FPakMountWork |
|
|
FStats |
Name |
Description |
|
---|---|---|
|
EChunkStatus |
Name |
Description |
---|---|
FCallback |
|
FMountTask |