Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FGenericPlatformChunkInstall Class Reference

#include <GenericPlatformChunkInstall.h>

+ Inheritance diagram for FGenericPlatformChunkInstall:
+ Collaboration diagram for FGenericPlatformChunkInstall:

Public Member Functions

virtual EChunkLocation::Type GetPakchunkLocation (int32 PakchunkIndex) override
 
virtual bool PrioritizePakchunk (int32 PakchunkIndex, EChunkPriority::Type Priority)
 
virtual bool GetProgressReportingTypeSupported (EChunkProgressReportingType::Type ReportType) override
 
virtual float GetChunkProgress (uint32 ChunkID, EChunkProgressReportingType::Type ReportType) override
 
virtual EChunkInstallSpeed::Type GetInstallSpeed () override
 
virtual bool SetInstallSpeed (EChunkInstallSpeed::Type InstallSpeed) override
 
virtual bool PrioritizeChunk (uint32 ChunkID, EChunkPriority::Type Priority) override
 
virtual bool DebugStartNextChunk () override
 
virtual void ExternalNotifyChunkAvailable (uint32 InChunkID) override
 
virtual FDelegateHandle AddChunkInstallDelegate (FPlatformChunkInstallDelegate Delegate) override
 
virtual void RemoveChunkInstallDelegate (FDelegateHandle Delegate) override
 
virtual bool SupportsIntelligentInstall () override
 
virtual bool IsChunkInstallationPending (const TArray< FCustomChunk > &ChunkTags) override
 
virtual bool InstallChunks (const TArray< FCustomChunk > &ChunkTagIDs) override
 
virtual bool UninstallChunks (const TArray< FCustomChunk > &ChunkTagsID) override
 
virtual TArray< FCustomChunkGetCustomChunksByType (ECustomChunkType DesiredChunkType) override
 
virtual bool SupportsNamedChunkInstall () const override
 
virtual bool IsNamedChunkInProgress (const FName NamedChunk) override
 
virtual bool InstallNamedChunk (const FName NamedChunk) override
 
virtual bool UninstallNamedChunk (const FName NamedChunk) override
 
virtual bool InstallNamedChunks (const TArrayView< const FName > &NamedChunks) override
 
virtual bool UninstallNamedChunks (const TArrayView< const FName > &NamedChunks) override
 
virtual EChunkLocation::Type GetNamedChunkLocation (const FName NamedChunk) override
 
virtual float GetNamedChunkProgress (const FName NamedChunk, EChunkProgressReportingType::Type ReportType) override
 
virtual bool PrioritizeNamedChunk (const FName NamedChunk, EChunkPriority::Type Priority) override
 
virtual ENamedChunkType GetNamedChunkType (const FName NamedChunk) const override
 
virtual TArray< FNameGetNamedChunksByType (ENamedChunkType NamedChunkType) const override
 
virtual FDelegateHandle AddNamedChunkInstallDelegate (FPlatformNamedChunkInstallDelegate Delegate) override
 
virtual void RemoveNamedChunkInstallDelegate (FDelegateHandle Delegate) override
 
- Public Member Functions inherited from IPlatformChunkInstall
virtual ~IPlatformChunkInstall ()
 

Protected Member Functions

virtual EChunkLocation::Type GetChunkLocation (uint32 ChunkID) override
 

Protected Attributes

FPlatformChunkInstallMultiDelegate InstallDelegate
 
FPlatformNamedChunkInstallMultiDelegate NamedChunkInstallDelegate
 

Detailed Description

Generic implementation of chunk based install

Definition at line 344 of file GenericPlatformChunkInstall.h.

Member Function Documentation

◆ AddChunkInstallDelegate()

virtual FDelegateHandle FGenericPlatformChunkInstall::AddChunkInstallDelegate ( FPlatformChunkInstallDelegate Delegate)
inlineoverridevirtual

Request a delegate callback on chunk install completion or failure. Request may not be respected.

Parameters
DelegateThe delegate to call when any chunk is installed or fails to install
Returns
Handle to the bound delegate

Implements IPlatformChunkInstall.

Definition at line 401 of file GenericPlatformChunkInstall.h.

◆ AddNamedChunkInstallDelegate()

virtual FDelegateHandle FGenericPlatformChunkInstall::AddNamedChunkInstallDelegate ( FPlatformNamedChunkInstallDelegate Delegate)
inlineoverridevirtual

Request a delegate callback on named chunk install completion or failure. Request may not be respected.

Parameters
DelegateThe delegate to call when any named chunk is installed or fails to install
Returns
Handle to the bound delegate

Implements IPlatformChunkInstall.

Definition at line 491 of file GenericPlatformChunkInstall.h.

◆ DebugStartNextChunk()

virtual bool FGenericPlatformChunkInstall::DebugStartNextChunk ( )
inlineoverridevirtual

For platforms that support emulation of the Chunk install. Starts transfer of the next chunk. Does nothing in a shipping build.

Returns
true if the operation succeeds.

Implements IPlatformChunkInstall.

Definition at line 391 of file GenericPlatformChunkInstall.h.

◆ ExternalNotifyChunkAvailable()

virtual void FGenericPlatformChunkInstall::ExternalNotifyChunkAvailable ( uint32 InChunkID)
inlineoverridevirtual

Allow an external system to notify that a particular chunk ID has become available Initial use-case is for dynamically encrypted pak files to signal to the outside world that it has become available.

Parameters
InChunkID- ID of the chunk that has just become available

Implements IPlatformChunkInstall.

Definition at line 396 of file GenericPlatformChunkInstall.h.

◆ GetChunkLocation()

virtual EChunkLocation::Type FGenericPlatformChunkInstall::GetChunkLocation ( uint32 ChunkID)
inlineoverrideprotectedvirtual

Get the current location of a chunk. Pakchunk index and platform chunk id are not always the same. Call GetPakchunkLocation instead of calling from outside.

Parameters
ChunkIDThe id of the chunk to check.
Returns
Enum specifying whether the chunk is available to use, waiting to install, or does not exist.

Implements IPlatformChunkInstall.

Definition at line 508 of file GenericPlatformChunkInstall.h.

+ Here is the caller graph for this function:

◆ GetChunkProgress()

virtual float FGenericPlatformChunkInstall::GetChunkProgress ( uint32 ChunkID,
EChunkProgressReportingType::Type ReportType )
inlineoverridevirtual

Get the current install progress of a chunk. Let the user specify report type for platforms that support more than one.

Parameters
ChunkIDThe id of the chunk to check.
ReportTypeThe type of progress report you want.
Returns
A value whose meaning is dependent on the ReportType param.

Implements IPlatformChunkInstall.

Definition at line 367 of file GenericPlatformChunkInstall.h.

◆ GetCustomChunksByType()

virtual TArray< FCustomChunk > FGenericPlatformChunkInstall::GetCustomChunksByType ( ECustomChunkType DesiredChunkType)
inlineoverridevirtual

Implements IPlatformChunkInstall.

Definition at line 431 of file GenericPlatformChunkInstall.h.

◆ GetInstallSpeed()

virtual EChunkInstallSpeed::Type FGenericPlatformChunkInstall::GetInstallSpeed ( )
inlineoverridevirtual

Inquire about the priority of chunk installation vs. game IO.

Returns
Paused, low or high priority.

Implements IPlatformChunkInstall.

Definition at line 376 of file GenericPlatformChunkInstall.h.

◆ GetNamedChunkLocation()

virtual EChunkLocation::Type FGenericPlatformChunkInstall::GetNamedChunkLocation ( const FName NamedChunk)
inlineoverridevirtual

Get the current location of the given named chunk

Parameters
NamedChunkThe name of the chunk
Returns
Enum specifying whether the chunk is available to use, waiting to install, or does not exist.

Implements IPlatformChunkInstall.

Definition at line 466 of file GenericPlatformChunkInstall.h.

◆ GetNamedChunkProgress()

virtual float FGenericPlatformChunkInstall::GetNamedChunkProgress ( const FName NamedChunk,
EChunkProgressReportingType::Type ReportType )
inlineoverridevirtual

Get the current install progress of the given named chunk. Let the user specify report type for platforms that support more than one.

Parameters
NamedChunkThe name of the chunk
ReportTypeThe type of progress report you want.
Returns
A value whose meaning is dependent on the ReportType param.

Implements IPlatformChunkInstall.

Definition at line 471 of file GenericPlatformChunkInstall.h.

◆ GetNamedChunksByType()

virtual TArray< FName > FGenericPlatformChunkInstall::GetNamedChunksByType ( ENamedChunkType NamedChunkType) const
inlineoverridevirtual

Get a list of all the named chunks of the given type

Parameters
Enumindicating the type of chunk
Returns
Array containing all named chunks of the given type

Implements IPlatformChunkInstall.

Definition at line 486 of file GenericPlatformChunkInstall.h.

◆ GetNamedChunkType()

virtual ENamedChunkType FGenericPlatformChunkInstall::GetNamedChunkType ( const FName NamedChunk) const
inlineoverridevirtual

Query the type of the given named chunk

Parameters
NamedChunkThe name of the chunk
Returns
Enum indicating the type of chunk, if any

Implements IPlatformChunkInstall.

Definition at line 481 of file GenericPlatformChunkInstall.h.

◆ GetPakchunkLocation()

virtual EChunkLocation::Type FGenericPlatformChunkInstall::GetPakchunkLocation ( int32 PakchunkIndex)
inlineoverridevirtual

Get the current location of a chunk with pakchunk index.

Parameters
PakchunkIndexThe id of the pak chunk.
Returns
Enum specifying whether the chunk is available to use, waiting to install, or does not exist.

Implements IPlatformChunkInstall.

Definition at line 347 of file GenericPlatformChunkInstall.h.

+ Here is the call graph for this function:

◆ GetProgressReportingTypeSupported()

virtual bool FGenericPlatformChunkInstall::GetProgressReportingTypeSupported ( EChunkProgressReportingType::Type ReportType)
inlineoverridevirtual

Check if a given reporting type is supported.

Parameters
ReportTypeEnum specifying how progress is reported.
Returns
true if reporting type is supported on the current platform.

Implements IPlatformChunkInstall.

Definition at line 357 of file GenericPlatformChunkInstall.h.

◆ InstallChunks()

virtual bool FGenericPlatformChunkInstall::InstallChunks ( const TArray< FCustomChunk > & ChunkTagIDs)
inlineoverridevirtual

◆ InstallNamedChunk()

virtual bool FGenericPlatformChunkInstall::InstallNamedChunk ( const FName NamedChunk)
inlineoverridevirtual

Install the given named chunk

Parameters
NamedChunkThe name of the chunk
Returns
whether installation task has been kicked

Implements IPlatformChunkInstall.

Definition at line 446 of file GenericPlatformChunkInstall.h.

◆ InstallNamedChunks()

virtual bool FGenericPlatformChunkInstall::InstallNamedChunks ( const TArrayView< const FName > & NamedChunks)
inlineoverridevirtual

Install the given set of named chunks

Parameters
NamedChunksThe names of the chunks to install
Returns
whether installation task has been kicked

Implements IPlatformChunkInstall.

Definition at line 456 of file GenericPlatformChunkInstall.h.

◆ IsChunkInstallationPending()

virtual bool FGenericPlatformChunkInstall::IsChunkInstallationPending ( const TArray< FCustomChunk > & ChunkTags)
inlineoverridevirtual

◆ IsNamedChunkInProgress()

virtual bool FGenericPlatformChunkInstall::IsNamedChunkInProgress ( const FName NamedChunk)
inlineoverridevirtual

Check whether the give chunk is being installed

Parameters
NamedChunkThe name of the chunk
Returns
whether installation task has been kicked

Implements IPlatformChunkInstall.

Definition at line 441 of file GenericPlatformChunkInstall.h.

◆ PrioritizeChunk()

virtual bool FGenericPlatformChunkInstall::PrioritizeChunk ( uint32 ChunkID,
EChunkPriority::Type Priority )
inlineoverridevirtual

Hint to the installer that we would like to prioritize a specific chunk

Parameters
ChunkIDThe id of the chunk to prioritize.
PriorityThe priority for the chunk.
Returns
false if the operation is not allowed or the chunk doesn't exist, otherwise true.

Implements IPlatformChunkInstall.

Definition at line 386 of file GenericPlatformChunkInstall.h.

+ Here is the caller graph for this function:

◆ PrioritizeNamedChunk()

virtual bool FGenericPlatformChunkInstall::PrioritizeNamedChunk ( const FName NamedChunk,
EChunkPriority::Type Priority )
inlineoverridevirtual

Hint to the installer that we would like to prioritize a specific chunk

Parameters
NamedChunkThe name of the chunk
PriorityThe priority for the chunk.
Returns
false if the operation is not allowed or the chunk doesn't exist, otherwise true.

Implements IPlatformChunkInstall.

Definition at line 476 of file GenericPlatformChunkInstall.h.

◆ PrioritizePakchunk()

virtual bool FGenericPlatformChunkInstall::PrioritizePakchunk ( int32 PakchunkIndex,
EChunkPriority::Type Priority )
inlinevirtual

Hint to the installer that we would like to prioritize a specific chunk

Parameters
PakchunkIndexThe index of the pakchunk to prioritize.
PriorityThe priority for the chunk.
Returns
false if the operation is not allowed or the chunk doesn't exist, otherwise true.

Implements IPlatformChunkInstall.

Definition at line 352 of file GenericPlatformChunkInstall.h.

+ Here is the call graph for this function:

◆ RemoveChunkInstallDelegate()

virtual void FGenericPlatformChunkInstall::RemoveChunkInstallDelegate ( FDelegateHandle Delegate)
inlineoverridevirtual

Remove a delegate callback on chunk install completion.

Parameters
DelegateThe delegate to remove.

Implements IPlatformChunkInstall.

Definition at line 406 of file GenericPlatformChunkInstall.h.

◆ RemoveNamedChunkInstallDelegate()

virtual void FGenericPlatformChunkInstall::RemoveNamedChunkInstallDelegate ( FDelegateHandle Delegate)
inlineoverridevirtual

Remove a delegate callback on named chunk install completion.

Parameters
DelegateThe delegate to remove.

Implements IPlatformChunkInstall.

Definition at line 496 of file GenericPlatformChunkInstall.h.

◆ SetInstallSpeed()

virtual bool FGenericPlatformChunkInstall::SetInstallSpeed ( EChunkInstallSpeed::Type InstallSpeed)
inlineoverridevirtual

Specify the priority of chunk installation vs. game IO.

Parameters
InstallSpeedPause, low or high priority.
Returns
false if the operation is not allowed, otherwise true.

Implements IPlatformChunkInstall.

Definition at line 381 of file GenericPlatformChunkInstall.h.

◆ SupportsIntelligentInstall()

virtual bool FGenericPlatformChunkInstall::SupportsIntelligentInstall ( )
inlineoverridevirtual

◆ SupportsNamedChunkInstall()

virtual bool FGenericPlatformChunkInstall::SupportsNamedChunkInstall ( ) const
inlineoverridevirtual

Check whether current platform supports chunk installation by name

Returns
whether Intelligent Install is supported

Implements IPlatformChunkInstall.

Definition at line 436 of file GenericPlatformChunkInstall.h.

◆ UninstallChunks()

virtual bool FGenericPlatformChunkInstall::UninstallChunks ( const TArray< FCustomChunk > & ChunkTagsID)
inlineoverridevirtual

◆ UninstallNamedChunk()

virtual bool FGenericPlatformChunkInstall::UninstallNamedChunk ( const FName NamedChunk)
inlineoverridevirtual

Uninstall the given named chunk

Parameters
NamedChunkThe name of the chunk
Returns
whether uninstallation task has been kicked

Implements IPlatformChunkInstall.

Definition at line 451 of file GenericPlatformChunkInstall.h.

◆ UninstallNamedChunks()

virtual bool FGenericPlatformChunkInstall::UninstallNamedChunks ( const TArrayView< const FName > & NamedChunks)
inlineoverridevirtual

Uninstall the given set of named chunks

Parameters
NamedChunkThe names of the chunks to uninstall
Returns
whether uninstallation task has been kicked

Implements IPlatformChunkInstall.

Definition at line 461 of file GenericPlatformChunkInstall.h.

Member Data Documentation

◆ InstallDelegate

FPlatformChunkInstallMultiDelegate FGenericPlatformChunkInstall::InstallDelegate
protected

Delegates called when installation succeeds or fails

Definition at line 505 of file GenericPlatformChunkInstall.h.

◆ NamedChunkInstallDelegate

FPlatformNamedChunkInstallMultiDelegate FGenericPlatformChunkInstall::NamedChunkInstallDelegate
protected

Definition at line 506 of file GenericPlatformChunkInstall.h.


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