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