XLE
v0.02.0
|
Utility for building asset objects that load from chunk files (sometimes asychronously) More...
#include <ChunkFileAsset.h>
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 | |
ChunkFileAsset & | operator= (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) |
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.