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
71
72 MCNAPI ::Bedrock::Resources::PreloadedPathHandle _findPreloadedPath(
74 ::Core::Path const& cleanPath
75 ) const;
76
77 MCNAPI ::Bedrock::Resources::PreloadState _getAsset(
79 ::Core::Path const& path,
80 ::std::string* assetData
81 ) const;
82
83 MCNAPI ::Bedrock::Resources::PreloadedPathHandle
84 addPreloadedPath(::Core::Path const& path, ::std::unique_ptr<::Bedrock::Resources::Archive::Reader> archiveReader);
85
86 MCNAPI ::Bedrock::Resources::PreloadedPathHandle findPreloadedPath(::Core::Path const& path) const;
87 // NOLINTEND
88
89public:
90 // static functions
91 // NOLINTBEGIN
92 MCNAPI static void _preloadedPathDeleter(
93 ::std::weak_ptr<::Bedrock::Resources::PreloadCache> weakThis,
94 ::Core::Path const& path,
96 );
97 // NOLINTEND
98
99public:
100 // constructor thunks
101 // NOLINTBEGIN
103 // NOLINTEND
104};
105
106} // namespace Bedrock::Resources
MCAPI void * $ctor(::Bedrock::Resources::PreloadCache::SharedOnlyConstructionTag)
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 _getAsset(::Bedrock::Resources::PreloadCache::PreloadedContentMaps const &contentMaps, ::Core::Path const &path, ::std::string *assetData) const
MCAPI PreloadCache(::Bedrock::Resources::PreloadCache::SharedOnlyConstructionTag)
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:15
Definition Path.h:10
Definition Alias.h:14