|
| | FTransactionallySafeAsyncPackageLoader (IAsyncPackageLoader *const InWrappedPackageLoader) |
| |
| virtual | ~FTransactionallySafeAsyncPackageLoader () |
| |
| void | InitializeLoading () override |
| |
| void | ShutdownLoading () override |
| |
| void | StartThread () override |
| |
| bool | ShouldAlwaysLoadPackageAsync (const FPackagePath &PackagePath) override |
| |
| int32 | LoadPackage (const FPackagePath &PackagePath, FName CustomPackageName, FLoadPackageAsyncDelegate InCompletionDelegate, EPackageFlags InPackageFlags, int32 InPIEInstanceID, int32 InPackagePriority, const FLinkerInstancingContext *InInstancingContext, uint32 InLoadFlags) override |
| |
| int32 | LoadPackage (const FPackagePath &PackagePath, FLoadPackageAsyncOptionalParams OptionalParams) override |
| |
| EAsyncPackageState::Type | ProcessLoading (bool bUseTimeLimit, bool bUseFullTimeLimit, double TimeLimit) override |
| |
| EAsyncPackageState::Type | ProcessLoadingUntilComplete (TFunctionRef< bool()> CompletionPredicate, double TimeLimit) override |
| |
| void | CancelLoading () override |
| |
| void | SuspendLoading () override |
| |
| void | ResumeLoading () override |
| |
| void | FlushLoading (TConstArrayView< int32 > RequestIds) override |
| |
| int32 | GetNumQueuedPackages () override |
| |
| int32 | GetNumAsyncPackages () override |
| |
| float | GetAsyncLoadPercentage (const FName &PackageName) override |
| |
| bool | IsAsyncLoadingSuspended () override |
| |
| bool | IsInAsyncLoadThread () override |
| |
| bool | IsMultithreaded () override |
| |
| bool | IsAsyncLoadingPackages () override |
| |
| void | NotifyConstructedDuringAsyncLoading (UObject *Object, bool bSubObject) override |
| |
| void | NotifyUnreachableObjects (const TArrayView< FUObjectItem * > &UnreachableObjects) override |
| |
| void | NotifyRegistrationEvent (FName PackageName, FName Name, ENotifyRegistrationType NotifyRegistrationType, ENotifyRegistrationPhase NotifyRegistrationPhase, UObject *(*InRegister)(), bool InbDynamic, UObject *FinishedObject) override |
| |
| void | NotifyScriptVersePackage (Verse::VPackage *Package) override |
| | Called for built in packages (currently only VVMIntrinsics.cpp) to allow them to be imported.
|
| |
| void | NotifyRegistrationComplete () override |
| |
| ELoaderType | GetLoaderType () const override |
| |
| virtual | ~IAsyncPackageLoader () |
| |
◆ FTransactionallySafeAsyncPackageLoader()
| FTransactionallySafeAsyncPackageLoader::FTransactionallySafeAsyncPackageLoader |
( |
IAsyncPackageLoader *const |
InWrappedPackageLoader | ) |
|
|
inline |
◆ ~FTransactionallySafeAsyncPackageLoader()
| virtual FTransactionallySafeAsyncPackageLoader::~FTransactionallySafeAsyncPackageLoader |
( |
| ) |
|
|
inlinevirtual |
◆ CancelLoading()
| void FTransactionallySafeAsyncPackageLoader::CancelLoading |
( |
| ) |
|
|
inlineoverridevirtual |
◆ FlushLoading()
Flush pending loading request(s).
Note: Called from Game Thread.
Implements IAsyncPackageLoader.
◆ GetAsyncLoadPercentage()
| float FTransactionallySafeAsyncPackageLoader::GetAsyncLoadPercentage |
( |
const FName & |
PackageName | ) |
|
|
inlineoverridevirtual |
[GAME THREAD] Gets the load percentage of the specified package
- Parameters
-
| PackageName | Name of the package to return async load percentage for |
- Returns
- Percentage (0-100) of the async package load or -1 of package has not been found
Implements IAsyncPackageLoader.
◆ GetLoaderType()
| ELoaderType FTransactionallySafeAsyncPackageLoader::GetLoaderType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetNumAsyncPackages()
| int32 FTransactionallySafeAsyncPackageLoader::GetNumAsyncPackages |
( |
| ) |
|
|
inlineoverridevirtual |
◆ GetNumQueuedPackages()
| int32 FTransactionallySafeAsyncPackageLoader::GetNumQueuedPackages |
( |
| ) |
|
|
inlineoverridevirtual |
◆ InitializeLoading()
| void FTransactionallySafeAsyncPackageLoader::InitializeLoading |
( |
| ) |
|
|
inlineoverridevirtual |
◆ IsAsyncLoadingPackages()
| bool FTransactionallySafeAsyncPackageLoader::IsAsyncLoadingPackages |
( |
| ) |
|
|
inlineoverridevirtual |
Returns whether packages are currently being loaded on a background thread. Note: GIsInitialLoad guards the package loader from creating background threads too early.
Implements IAsyncPackageLoader.
◆ IsAsyncLoadingSuspended()
| bool FTransactionallySafeAsyncPackageLoader::IsAsyncLoadingSuspended |
( |
| ) |
|
|
inlineoverridevirtual |
◆ IsInAsyncLoadThread()
| bool FTransactionallySafeAsyncPackageLoader::IsInAsyncLoadThread |
( |
| ) |
|
|
inlineoverridevirtual |
◆ IsMultithreaded()
| bool FTransactionallySafeAsyncPackageLoader::IsMultithreaded |
( |
| ) |
|
|
inlineoverridevirtual |
Returns whether loading packages with multiple threads. Note: GIsInitialLoad guards the package loader from creating background threads too early.
Implements IAsyncPackageLoader.
◆ LoadPackage() [1/2]
Asynchronously load a package.
- Parameters
-
| PackagePath | PackagePath to load. Must be a mounted path. The package is created if it does not already exist. |
| OptionalParams | Struct containing all the parameters required to load the package. |
- Returns
- Unique ID associated with this load request (the same package can be associated with multiple IDs).
Reimplemented from IAsyncPackageLoader.
◆ LoadPackage() [2/2]
Asynchronously load a package.
- Parameters
-
| PackagePath | PackagePath to load. Must be a mounted path. The package is created if it does not already exist. |
| CustomPackageName | If not none, this is the name of the package to load into (and create if not yet existing). If none, the name is take from PackagePath. |
| InCompletionDelegate | Delegate to be invoked when the packages has finished streaming |
| InPackageFlags | Package flags used to construct loaded package in memory |
| InPIEInstanceID | Play in Editor instance ID |
| InPackagePriority | Loading priority |
| InstancingContext | Additional context to map object names to their instanced counterpart when loading an instanced package |
| LoadFlags | Flags controlling loading behavior, from the ELoadFlags enum |
- Returns
- Unique ID associated with this load request (the same package can be associated with multiple IDs).
Implements IAsyncPackageLoader.
◆ NotifyConstructedDuringAsyncLoading()
| void FTransactionallySafeAsyncPackageLoader::NotifyConstructedDuringAsyncLoading |
( |
UObject * |
Object, |
|
|
bool |
bSubObject |
|
) |
| |
|
inlineoverridevirtual |
◆ NotifyRegistrationComplete()
| void FTransactionallySafeAsyncPackageLoader::NotifyRegistrationComplete |
( |
| ) |
|
|
inlineoverridevirtual |
◆ NotifyRegistrationEvent()
◆ NotifyScriptVersePackage()
| void FTransactionallySafeAsyncPackageLoader::NotifyScriptVersePackage |
( |
Verse::VPackage * |
Package | ) |
|
|
inlineoverridevirtual |
◆ NotifyUnreachableObjects()
◆ ProcessLoading()
Process all currently loading package requests.
- Parameters
-
| bUseTimeLimit | Whether to use time limit or not |
| bUseFullTimeLimit |
|
| TimeLimit | Time limit |
Implements IAsyncPackageLoader.
◆ ProcessLoadingUntilComplete()
Process all loading package requests until completion predicate is satisfied.
- Parameters
-
| CompletionPredicate | Completion predicate |
| TimeLimit | Time limit |
Implements IAsyncPackageLoader.
◆ ResumeLoading()
| void FTransactionallySafeAsyncPackageLoader::ResumeLoading |
( |
| ) |
|
|
inlineoverridevirtual |
◆ ShouldAlwaysLoadPackageAsync()
| bool FTransactionallySafeAsyncPackageLoader::ShouldAlwaysLoadPackageAsync |
( |
const FPackagePath & |
PackagePath | ) |
|
|
inlineoverridevirtual |
◆ ShutdownLoading()
| void FTransactionallySafeAsyncPackageLoader::ShutdownLoading |
( |
| ) |
|
|
inlineoverridevirtual |
◆ StartThread()
| void FTransactionallySafeAsyncPackageLoader::StartThread |
( |
| ) |
|
|
inlineoverridevirtual |
◆ SuspendLoading()
| void FTransactionallySafeAsyncPackageLoader::SuspendLoading |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: