XLE  v0.02.0
Public Member Functions | Protected Types | Protected Member Functions | List of all members
Assets::ChunkFileAsset Class Reference

Utility for building asset objects that load from chunk files (sometimes asychronously) More...

#include <ChunkFileAsset.h>

Inheritance diagram for Assets::ChunkFileAsset:
Inheritance graph
[legend]

Public Member Functions

const rstring & Filename () const
 
auto GetDependencyValidation () const -> const std::shared_ptr< DependencyValidation > &
 
void Resolve () const
 
::Assets::AssetState TryResolve () const
 
::Assets::AssetState StallAndResolve () const
 
 ChunkFileAsset (ChunkFileAsset &&moveFrom) never_throws
 
ChunkFileAssetoperator= (ChunkFileAsset &&moveFrom) never_throws
 

Protected Types

using ResolveFn = void(void *, IteratorRange< AssetChunkResult * >)
 

Protected Member Functions

 ChunkFileAsset (const char assetTypeName[])
 
void Prepare (const ::Assets::ResChar filename[], IteratorRange< const AssetChunkRequest * > requests, ResolveFn *resolveFn)
 
void Prepare (std::shared_ptr< PendingCompileMarker > &&marker, IteratorRange< const AssetChunkRequest * > requests, ResolveFn *resolveFn)
 

Detailed Description

Utility for building asset objects that load from chunk files (sometimes asychronously)

Some simple assets simply want to load some raw data from a chunk in a file, or perhaps from a few chunks in the same file. This is a base class to take away some of the leg-work involved in implementing that class.


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