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
27
29 public:
30 // member variables
31 // NOLINTBEGIN
34 // NOLINTEND
35
36 public:
37 // prevent constructor by default
41 };
42
43public:
44 // member variables
45 // NOLINTBEGIN
47 // NOLINTEND
48
49public:
50 // prevent constructor by default
51 PreloadCache& operator=(PreloadCache const&);
54
55public:
56 // member functions
57 // NOLINTBEGIN
59
60 MCAPI ::Bedrock::Resources::PreloadedPathHandle _findPreloadedPath(
62 ::Core::Path const& cleanPath
63 ) const;
64
65 MCAPI ::Bedrock::Resources::PreloadState _getAsset(
67 ::Core::Path const& path,
68 ::std::string* assetData
69 ) const;
70
71 MCAPI ::Bedrock::Resources::PreloadedPathHandle
72 addPreloadedPath(::Core::Path const& path, ::std::unique_ptr<::Bedrock::Resources::Archive::Reader> archiveReader);
73
74 MCAPI ::Bedrock::Resources::PreloadedPathHandle findPreloadedPath(::Core::Path const& path) const;
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCAPI static void _preloadedPathDeleter(
81 ::std::weak_ptr<::Bedrock::Resources::PreloadCache> weakThis,
82 ::Core::Path const& path,
84 );
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
91 // NOLINTEND
92};
93
94} // namespace Bedrock::Resources
Definition PreloadCache.h:17
Definition Path.h:15
Definition Path.h:16
Definition Alias.h:14