LeviLamina
Loading...
Searching...
No Matches
PreloadCache.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/resource_processing/PreloadState.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Bedrock::Resources { class PreloadedPathHandle; }
11namespace Bedrock::Resources::Archive { class Reader; }
12namespace Core { class Path; }
13// clang-format on
14
15namespace Bedrock::Resources {
16
17class PreloadCache : public ::std::enable_shared_from_this<::Bedrock::Resources::PreloadCache> {
18public:
19 // PreloadCache inner types declare
20 // clang-format off
23 // clang-format on
24
25 // PreloadCache inner types define
26 struct PreloadedContentMaps {
27 public:
28 // member variables
29 // NOLINTBEGIN
32 // NOLINTEND
33
34 public:
35 // prevent constructor by default
36 PreloadedContentMaps& operator=(PreloadedContentMaps const&);
37 PreloadedContentMaps(PreloadedContentMaps const&);
38 PreloadedContentMaps();
39
40 public:
41 // member functions
42 // NOLINTBEGIN
44 // NOLINTEND
45
46 public:
47 // destructor thunk
48 // NOLINTBEGIN
49 MCNAPI void $dtor();
50 // NOLINTEND
51 };
52
54
55public:
56 // member variables
57 // NOLINTBEGIN
59 // NOLINTEND
60
61public:
62 // prevent constructor by default
63 PreloadCache& operator=(PreloadCache const&);
64 PreloadCache(PreloadCache const&);
65 PreloadCache();
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCNAPI ::Bedrock::Resources::PreloadedPathHandle _findPreloadedPath(
72 ::Core::Path const& cleanPath
73 ) const;
74
75 MCNAPI ::Bedrock::Resources::PreloadState _getAsset(
77 ::Core::Path const& path,
78 ::std::string* assetData
79 ) const;
80
81 MCNAPI ::Bedrock::Resources::PreloadedPathHandle
82 addPreloadedPath(::Core::Path const& path, ::std::unique_ptr<::Bedrock::Resources::Archive::Reader> archiveReader);
83
84 MCNAPI ::Bedrock::Resources::PreloadedPathHandle findPreloadedPath(::Core::Path const& path) const;
85
86 MCNAPI ::Bedrock::Resources::PreloadState getAsset(::Core::Path const& path, ::std::string& contents) const;
87
88 MCNAPI ::Bedrock::Resources::PreloadState hasAsset(::Core::Path const& path) const;
89 // NOLINTEND
90
91public:
92 // static functions
93 // NOLINTBEGIN
94 MCNAPI static void _preloadedPathDeleter(
95 ::std::weak_ptr<::Bedrock::Resources::PreloadCache> weakThis,
96 ::Core::Path const& path,
98 );
99
100 MCNAPI static ::std::shared_ptr<::Bedrock::Resources::PreloadCache> create();
101 // NOLINTEND
102};
103
104} // namespace Bedrock::Resources
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 Path.h:12
Definition Alias.h:14