LeviLamina
Loading...
Searching...
No Matches
PackInstance.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/resource/PackCategory.h"
7#include "mc/deps/core/resource/PackOrigin.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9
10// auto generated forward declare list
11// clang-format off
12class PackManifest;
13class PackReport;
14class PackSettings;
15class PackStats;
16class ResourcePack;
17class SemVersion;
18namespace Bedrock::Resources { class PreloadedPathHandle; }
19namespace Core { class Path; }
20namespace mce { class UUID; }
21// clang-format on
22
24public:
25 // PackInstance inner types define
26 using Callback = ::std::function<void(::Core::Path const&)>;
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 256, ::PackReport> mPackReport;
32 ::ll::TypedStorage<8, 8, ::PackSettings*> mPackSettings;
33 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::ResourcePack>> mPack;
34 ::ll::TypedStorage<4, 16, ::PackStats> mStats;
35 ::ll::TypedStorage<4, 4, int> mSubpackIndex;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI PackInstance(
42 ::Bedrock::NotNullNonOwnerPtr<::ResourcePack> pack,
43 int subpackIndex,
44 bool packSettings,
45 ::PackSettings* isDependent
46 );
47
48 MCAPI PackInstance(
49 ::Bedrock::NotNullNonOwnerPtr<::ResourcePack> pack,
50 ::std::string const& subpackName,
51 bool packSettings,
52 ::PackSettings* isDependent
53 );
54
55 MCAPI ::std::string const& getFolderName() const;
56
57 MCAPI ::PackManifest const& getManifest() const;
58
59 MCAPI ::PackManifest& getManifest();
60
61 MCAPI ::PackCategory getPackCategory() const;
62
63 MCAPI ::mce::UUID const getPackId() const;
64
65 MCAPI ::PackOrigin getPackOrigin() const;
66
67 MCAPI ::std::string const& getSubpackFolderName() const;
68
69 MCAPI ::SemVersion const& getVersion() const;
70
71 MCAPI bool isBaseGamePack() const;
72
73 MCAPI ::Bedrock::Resources::PreloadedPathHandle preloadPath(::Core::Path const& packRelativePath) const;
74
75 MCAPI ~PackInstance();
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81 MCAPI void* $ctor(
82 ::Bedrock::NotNullNonOwnerPtr<::ResourcePack> pack,
83 int subpackIndex,
84 bool packSettings,
85 ::PackSettings* isDependent
86 );
87
88 MCAPI void* $ctor(
89 ::Bedrock::NotNullNonOwnerPtr<::ResourcePack> pack,
90 ::std::string const& subpackName,
91 bool packSettings,
92 ::PackSettings* isDependent
93 );
94 // NOLINTEND
95
96public:
97 // destructor thunk
98 // NOLINTBEGIN
99 MCAPI void $dtor();
100 // NOLINTEND
101};
Definition Path.h:15
Definition PackInstance.h:23
Definition PackManifest.h:19
Definition PackReport.h:17
Definition PackSettings.h:12
Definition PackStats.h:5
Definition Path.h:16
Definition ResourcePack.h:25
Definition SemVersion.h:15