LeviLamina
Loading...
Searching...
No Matches
PacksInfoData.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/network/packet/PackInfoData.h"
5
6// auto generated inclusion list
7#include "mc/deps/core/resource/PackIdVersion.h"
8
9// auto generated forward declare list
10// clang-format off
11struct PackInfoData;
12// clang-format on
13
15public:
16 // member variables
17 // NOLINTBEGIN
18 ::ll::TypedStorage<1, 1, bool> mResourcePackRequired;
19 ::ll::TypedStorage<1, 1, bool> mHasAddonPacks;
20 ::ll::TypedStorage<1, 1, bool> mHasScripts;
21 ::ll::TypedStorage<1, 1, bool> mForceDisableVibrantVisuals;
22 ::ll::TypedStorage<8, 48, ::PackIdVersion> mWorldTemplateIdAndVersion;
23 ::ll::TypedStorage<8, 24, ::std::vector<::PackInfoData>> mResourcePacks;
24 // NOLINTEND
25
26public:
27 [[nodiscard]] std::unordered_map<::ContentIdentity, ::std::string> collectKeys() const {
28 std::unordered_map<::ContentIdentity, ::std::string> result;
29 for (auto const& info : *mResourcePacks) {
30 // Packs with no content key are not addressable, so they are left out.
31 if (!info.mContentKey->empty()) {
32 result.emplace(info.mContentIdentity.get(), info.mContentKey.get());
33 }
34 }
35 return result;
36 }
37
38public:
39 // member functions
40 // NOLINTBEGIN
41#ifdef LL_PLAT_C
42 MCAPI ~PacksInfoData();
43#endif
44 // NOLINTEND
45
46public:
47 // destructor thunk
48 // NOLINTBEGIN
49#ifdef LL_PLAT_C
50 MCAPI void $dtor();
51#endif
52 // NOLINTEND
53};
Definition PackInfoData.h:15
Definition PacksInfoData.h:14