LeviLamina
Loading...
Searching...
No Matches
ResourcePackManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/resource/ResourceLoader.h"
8#include "mc/deps/core/resource/ResourcePackStackType.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
10
11// auto generated forward declare list
12// clang-format off
15class PackInstance;
17class ResourceGroup;
21namespace Core { class Path; }
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
50
51public:
52 // virtual functions
53 // NOLINTBEGIN
54 // vIndex: 0
55 virtual ~ResourcePackManager() /*override*/;
56
57 // vIndex: 3
58 virtual bool load(::ResourceLocation const& resourceLocation, ::std::string& resourceStream) const /*override*/;
59
60 // vIndex: 2
61 virtual bool load(
62 ::ResourceLocation const& resourceLocation,
63 ::std::string& resourceStream,
64 ::gsl::span<::std::string const> extensionList
65 ) const /*override*/;
66
67 // vIndex: 1
68 virtual bool load(
69 ::ResourceLocationPair const& resourceLocation,
70 ::std::string& resourceStream,
71 ::gsl::span<::std::string const> extensions
72 ) const /*override*/;
73
74 // vIndex: 4
75 virtual bool loadText(::ResourceLocation const& resourceLocation, ::std::string& resourceStream) const /*override*/;
76
77 // vIndex: 5
78 virtual ::std::vector<::LoadedResourceData> loadAllVersionsOf(::ResourceLocation const& resourceLocation) const
79 /*override*/;
80
81 // vIndex: 7
82 virtual bool isInStreamableLocation(::ResourceLocation const& resourceLocation) const /*override*/;
83
84 // vIndex: 6
85 virtual bool isInStreamableLocation(
86 ::ResourceLocation const& resourceLocation,
87 ::gsl::span<::std::string const> extensions
88 ) const /*override*/;
89
90 // vIndex: 9
91 virtual ::Core::PathBuffer<::std::string> getPath(::ResourceLocation const& resourceLocation) const /*override*/;
92
93 // vIndex: 8
94 virtual ::Core::PathBuffer<::std::string>
95 getPath(::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensions) const /*override*/;
96
97 // vIndex: 11
98 virtual ::Core::PathBuffer<::std::string>
99 getPathContainingResource(::ResourceLocation const& resourceLocation) const /*override*/;
100
101 // vIndex: 10
102 virtual ::Core::PathBuffer<::std::string> getPathContainingResource(
103 ::ResourceLocation const& resourceLocation,
104 ::gsl::span<::std::string const> extensions
105 ) const /*override*/;
106
107 // vIndex: 12
108 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
109 ::ResourceLocation const& resourceLocation,
110 ::gsl::span<::std::string const> extensions
111 ) const /*override*/;
112
113 // vIndex: 13
114 virtual bool hasCapability(::std::string_view requiredCapability) const;
115 // NOLINTEND
116
117public:
118 // member functions
119 // NOLINTBEGIN
121 ::std::function<::Core::PathBuffer<::std::string>()> getPath,
122 ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const> const& contentTierManager,
123 bool needsToInitialize
124 );
125
127
128 MCNAPI void _composeFullStack();
129
131 ::PackInstance const& packInstance,
132 ::std::string const& group,
133 ::std::vector<::Core::Path>& resources
134 ) const;
135
137
139 ::ResourcePackStack& output,
140 ::ResourcePackStack const& globalStack,
141 ::ResourcePackStack const& levelStack,
142 ::ResourcePackStack const& addonStack
143 ) const;
144
145 MCNAPI ::ResourceGroup getResourcesOfGroup(::std::string const& group) const;
146
147 MCNAPI ::ResourceGroup getResourcesOfGroup(::PackInstance const& packInstance, ::std::string const& group) const;
148
149 MCNAPI ::ResourcePackStack const& getStack(::ResourcePackStackType stackType) const;
150
151 MCNAPI void iteratePacks(::std::function<void(::PackInstance const&)> const& pred) const;
152
153 MCNAPI void removeIf(::std::function<bool(::PackInstance const&)> const& pred);
154
156
157 MCNAPI bool
158 setStack(::std::unique_ptr<::ResourcePackStack> stack, ::ResourcePackStackType stackType, bool composeStack);
159 // NOLINTEND
160
161public:
162 // constructor thunks
163 // NOLINTBEGIN
164 MCNAPI void* $ctor(
165 ::std::function<::Core::PathBuffer<::std::string>()> getPath,
166 ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const> const& contentTierManager,
167 bool needsToInitialize
168 );
169 // NOLINTEND
170
171public:
172 // destructor thunk
173 // NOLINTBEGIN
174 MCNAPI void $dtor();
175 // NOLINTEND
176
177public:
178 // virtual function thunks
179 // NOLINTBEGIN
180 MCNAPI bool $load(::ResourceLocation const& resourceLocation, ::std::string& resourceStream) const;
181
182 MCNAPI bool $load(
183 ::ResourceLocation const& resourceLocation,
184 ::std::string& resourceStream,
185 ::gsl::span<::std::string const> extensionList
186 ) const;
187
188 MCNAPI bool $load(
189 ::ResourceLocationPair const& resourceLocation,
190 ::std::string& resourceStream,
191 ::gsl::span<::std::string const> extensions
192 ) const;
193
194 MCNAPI bool $loadText(::ResourceLocation const& resourceLocation, ::std::string& resourceStream) const;
195
196 MCNAPI ::std::vector<::LoadedResourceData> $loadAllVersionsOf(::ResourceLocation const& resourceLocation) const;
197
198 MCNAPI bool $isInStreamableLocation(::ResourceLocation const& resourceLocation) const;
199
201 ::ResourceLocation const& resourceLocation,
202 ::gsl::span<::std::string const> extensions
203 ) const;
204
205 MCNAPI ::Core::PathBuffer<::std::string> $getPath(::ResourceLocation const& resourceLocation) const;
206
207 MCNAPI ::Core::PathBuffer<::std::string>
208 $getPath(::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensions) const;
209
210 MCNAPI ::Core::PathBuffer<::std::string>
211 $getPathContainingResource(::ResourceLocation const& resourceLocation) const;
212
213 MCNAPI ::Core::PathBuffer<::std::string> $getPathContainingResource(
214 ::ResourceLocation const& resourceLocation,
215 ::gsl::span<::std::string const> extensions
216 ) const;
217
218 MCNAPI ::std::pair<int, ::std::string_view> $getPackStackIndexOfResource(
219 ::ResourceLocation const& resourceLocation,
220 ::gsl::span<::std::string const> extensions
221 ) const;
222
223 MCNAPI bool $hasCapability(::std::string_view requiredCapability) const;
224 // NOLINTEND
225
226public:
227 // vftables
228 // NOLINTBEGIN
229 MCNAPI static void** $vftable();
230 // NOLINTEND
231};
Definition PathBuffer.h:8
Definition IContentTierManager.h:13
Definition LoadedResourceData.h:5
Definition PackInstance.h:23
Definition PackSourceReport.h:5
Definition Path.h:16
Definition ResourceGroup.h:8
Definition ResourceLoader.h:16
Definition ResourceLocationPair.h:5
Definition ResourceLocation.h:14
Definition ResourcePackManager.h:24
MCAPI ::std::vector<::LoadedResourceData > $loadAllVersionsOf(::ResourceLocation const &resourceLocation) const
MCAPI::ResourceGroup getResourcesOfGroup(::std::string const &group) const
MCAPI void setPackSourceReport(::PackSourceReport &&report)
MCAPI void _composeFullStack()
MCAPI bool $load(::ResourceLocationPair const &resourceLocation, ::std::string &resourceStream, ::gsl::span<::std::string const > extensions) const
MCAPI bool $loadText(::ResourceLocation const &resourceLocation, ::std::string &resourceStream) const
MCAPI int composeFullStack(::ResourcePackStack &output, ::ResourcePackStack const &globalStack, ::ResourcePackStack const &levelStack, ::ResourcePackStack const &addonStack) const
MCAPI void iteratePacks(::std::function< void(::PackInstance const &)> const &pred) const
MCAPI ResourcePackManager(::std::function<::Core::PathBuffer<::std::string >()> getPath, ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const > const &contentTierManager, bool needsToInitialize)
MCAPI void _calculateMinEngineVersionFromFullStack()
MCAPI ::Core::PathBuffer<::std::string > $getPathContainingResource(::ResourceLocation const &resourceLocation) const
MCAPI bool $isInStreamableLocation(::ResourceLocation const &resourceLocation) const
MCAPI bool $load(::ResourceLocation const &resourceLocation, ::std::string &resourceStream, ::gsl::span<::std::string const > extensionList) const
MCAPI::ResourceGroup getResourcesOfGroup(::PackInstance const &packInstance, ::std::string const &group) const
MCAPI void removeIf(::std::function< bool(::PackInstance const &)> const &pred)
static MCAPI void ** $vftable()
MCAPI bool $hasCapability(::std::string_view requiredCapability) const
MCAPI ::Core::PathBuffer<::std::string > $getPathContainingResource(::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensions) const
MCAPI void _updateLanguageSubpacks()
MCAPI void $dtor()
MCAPI void * $ctor(::std::function<::Core::PathBuffer<::std::string >()> getPath, ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const > const &contentTierManager, bool needsToInitialize)
MCAPI ::std::pair< int, ::std::string_view > $getPackStackIndexOfResource(::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensions) const
MCAPI::ResourcePackStack const & getStack(::ResourcePackStackType stackType) const
MCAPI ::Core::PathBuffer<::std::string > $getPath(::ResourceLocation const &resourceLocation) const
MCAPI ::Core::PathBuffer<::std::string > $getPath(::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensions) const
MCAPI bool setStack(::std::unique_ptr<::ResourcePackStack > stack, ::ResourcePackStackType stackType, bool composeStack)
MCAPI bool $load(::ResourceLocation const &resourceLocation, ::std::string &resourceStream) const
MCAPI void _getResourcesOfGroup(::PackInstance const &packInstance, ::std::string const &group, ::std::vector<::Core::Path > &resources) const
MCAPI bool $isInStreamableLocation(::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensions) const
Definition ResourcePackStack.h:21
Definition Alias.h:14