3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/resource_processing/PreloadState.h"
11namespace Bedrock::Resources::Archive {
class Reader; }
12namespace Core {
class Path; }
15namespace Bedrock::Resources {
17class PreloadCache :
public ::std::enable_shared_from_this<::Bedrock::Resources::PreloadCache> {
26 struct PreloadedContentMaps {
36 PreloadedContentMaps& operator=(PreloadedContentMaps
const&);
37 PreloadedContentMaps(PreloadedContentMaps
const&);
38 PreloadedContentMaps();
63 PreloadCache& operator=(PreloadCache
const&);
64 PreloadCache(PreloadCache
const&);
75 MCNAPI ::Bedrock::Resources::PreloadState
_getAsset(
78 ::std::string* assetData
81 MCNAPI ::Bedrock::Resources::PreloadedPathHandle
86 MCNAPI ::Bedrock::Resources::PreloadState
getAsset(
::Core::Path const& path, ::std::string& contents)
const;
95 ::std::weak_ptr<::Bedrock::Resources::PreloadCache> weakThis,
100 MCNAPI static ::std::shared_ptr<::Bedrock::Resources::PreloadCache>
create();
MCAPI::Bedrock::Resources::PreloadState getAsset(::Core::Path const &path, ::std::string &contents) const
MCAPI::Bedrock::Resources::PreloadedPathHandle _findPreloadedPath(::Bedrock::Resources::PreloadCache::PreloadedContentMaps const &contentMaps, ::Core::Path const &cleanPath) const
static MCAPI void _preloadedPathDeleter(::std::weak_ptr<::Bedrock::Resources::PreloadCache > weakThis, ::Core::Path const &path, ::Bedrock::Resources::Archive::Reader *reader)
MCAPI::Bedrock::Resources::PreloadState hasAsset(::Core::Path const &path) const
static MCAPI ::std::shared_ptr<::Bedrock::Resources::PreloadCache > create()
MCAPI::Bedrock::Resources::PreloadState _getAsset(::Bedrock::Resources::PreloadCache::PreloadedContentMaps const &contentMaps, ::Core::Path const &path, ::std::string *assetData) const
MCAPI::Bedrock::Resources::PreloadedPathHandle findPreloadedPath(::Core::Path const &path) const
MCAPI::Bedrock::Resources::PreloadedPathHandle addPreloadedPath(::Core::Path const &path, ::std::unique_ptr<::Bedrock::Resources::Archive::Reader > archiveReader)
Definition PreloadedPathHandle.h:16
Definition PreloadCache.h:26
MCAPI ~PreloadedContentMaps()
Definition PreloadCache.h:53