Navigation
API > API/Plugins > API/Plugins/StormSyncCore
References
| Module | StormSyncCore |
| Header | /Engine/Plugins/Experimental/StormSync/Source/StormSyncCore/Public/StormSyncCoreUtils.h |
| Include | #include "StormSyncCoreUtils.h" |
Syntax
class FStormSyncCoreUtils
Remarks
This class exposes a set of static methods to manipulate Ava Pak files, creation and extraction.
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CreatePakBuffer
(
const TArray< FName >& InPackageNames, |
Attempts to create an ava pak buffer using a memory archive from the provided list of Package Names. | |
| bool | CreatePakBufferWithDependencies
(
const TArray< FName >& InPackageNames, |
Recursively get dependencies for provided list of Package Names and attempts to create an ava pak buffer using a memory archive. | |
| FStormSyncFileDependency | CreateStormSyncFile
(
const FName& InPackageName |
Creates a new FStormSyncFileDependency and initialize filesystem related information | |
| bool | ExtractPakBuffer
(
const TArray< uint8 >& InPakBuffer, |
Main entry point for unpacking. | |
| bool | GetAssetData
(
const FString& InPackageName, |
Helper function to retrieve the FAssetData associated with a given file. | |
| TFuture< TArray< FStormSyncFileDependency > > | GetAvaFileDependenciesAsync
(
const TArray< FName >& InPackageNames, |
Async version of FStormSyncCoreUtils::GetAvaFileDependenciesFromPackageNames to return a list of File Dependencies (with info about file size, asset path, timestamp file hash, etc.) from the provided list of package names. | |
| bool | GetAvaFileDependenciesForPackages
(
const TArray< FName >& InPackageNames, |
Similar to GetDependenciesForPackages internally searching for any recursive dependencies. | |
| TArray< FStormSyncFileDependency > | GetAvaFileDependenciesFromPackageNames
(
const TArray< FName >& InPackageNames, |
Creates a list of FStormSyncFileDependency (with info such as asset path, file size, timestamp and file hash) from the supplied list of package names. | |
| bool | Gathers a list of PackageNames dependencies referenced by the supplied packages. | ||
| FString | GetHumanReadableByteSize
(
uint64 InSize |
Converts the provided bytes size into a human readable string. | |
| TArray< FStormSyncFileModifierInfo > | GetSyncFileModifiers
(
const TArray< FName >& InPackageNames, |
Figures out the files that needs to be synced based on local and remote list of dependencies. |
Typedefs
| Name | Description |
|---|---|
| FOnFileAdded | Delegate type triggered on pak buffer creation for each added file |