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/resources/PackReport.h"
7#include "mc/resources/PackStats.h"
8
9// auto generated forward declare list
10// clang-format off
11class PackSettings;
12class ResourcePack;
13namespace Core { class Path; }
14// clang-format on
15
16class PackInstance {
17public:
18 // PackInstance inner types define
19 using Callback = ::std::function<void(::Core::Path const&)>;
20
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 248, ::PackReport> mPackReport;
25 ::ll::TypedStorage<8, 8, ::PackSettings*> mPackSettings;
26 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::ResourcePack>>> mPack;
27 ::ll::TypedStorage<4, 16, ::PackStats> mStats;
28 ::ll::TypedStorage<4, 4, int> mSubpackIndex;
29 ::ll::TypedStorage<1, 1, uchar> mRevision;
30 // NOLINTEND
31
32public:
33 LLNDAPI bool getResource(::Core::Path const& resourceName, ::std::string& resourceStream) const;
34
35public:
36 // prevent constructor by default
37 PackInstance();
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI PackInstance(
43 ::gsl::not_null<::std::shared_ptr<::ResourcePack>> pack,
44 int subpackIndex,
45 bool isDependent,
46 ::PackSettings* packSettings
47 );
48
49 MCAPI PackInstance(
50 ::gsl::not_null<::std::shared_ptr<::ResourcePack>> pack,
51 ::std::string const& subpackName,
52 bool isDependent,
53 ::PackSettings* packSettings
54 );
55
56 MCAPI ~PackInstance();
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCAPI void* $ctor(
63 ::gsl::not_null<::std::shared_ptr<::ResourcePack>> pack,
64 int subpackIndex,
65 bool isDependent,
66 ::PackSettings* packSettings
67 );
68
69 MCAPI void* $ctor(
70 ::gsl::not_null<::std::shared_ptr<::ResourcePack>> pack,
71 ::std::string const& subpackName,
72 bool isDependent,
73 ::PackSettings* packSettings
74 );
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80 MCAPI void $dtor();
81 // NOLINTEND
82};
Definition Path.h:11
Definition PackSettings.h:20
Definition ResourcePack.h:25