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#include "mc/resources/PackReport.h"
10#include "mc/resources/PackStats.h"
11
12// auto generated forward declare list
13// clang-format off
14class PackManifest;
15class PackSettings;
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, 248, ::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 // prevent constructor by default
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI PackInstance(
46 ::Bedrock::NotNullNonOwnerPtr<::ResourcePack> pack,
47 int subpackIndex,
48 bool isDependent,
49 ::PackSettings* packSettings
50 );
51
52 MCAPI PackInstance(
53 ::Bedrock::NotNullNonOwnerPtr<::ResourcePack> pack,
54 ::std::string const& subpackName,
55 bool isDependent,
56 ::PackSettings* packSettings
57 );
58
59 MCAPI ::std::string const& getFolderName() const;
60
61 MCAPI ::PackManifest const& getManifest() const;
62
63 MCAPI ::PackCategory getPackCategory() const;
64
65 MCAPI ::mce::UUID const getPackId() const;
66
67 MCAPI ::PackOrigin getPackOrigin() const;
68
69 MCAPI ::std::string const& getSubpackFolderName() const;
70
71 MCAPI ::SemVersion const& getVersion() const;
72
73 MCAPI bool isBaseGamePack() const;
74
75 MCAPI ::Bedrock::Resources::PreloadedPathHandle preloadPath(::Core::Path const& packRelativePath) const;
76
77 MCAPI ~PackInstance();
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCAPI void* $ctor(
84 ::Bedrock::NotNullNonOwnerPtr<::ResourcePack> pack,
85 int subpackIndex,
86 bool isDependent,
87 ::PackSettings* packSettings
88 );
89
90 MCAPI void* $ctor(
91 ::Bedrock::NotNullNonOwnerPtr<::ResourcePack> pack,
92 ::std::string const& subpackName,
93 bool isDependent,
94 ::PackSettings* packSettings
95 );
96 // NOLINTEND
97
98public:
99 // destructor thunk
100 // NOLINTBEGIN
101 MCAPI void $dtor();
102 // NOLINTEND
103};
Definition Path.h:17
Definition PackInstance.h:23
Definition PackManifest.h:31
Definition PackSettings.h:14
Definition Path.h:16
Definition ResourcePack.h:25
Definition SemVersion.h:15