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
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 // NOLINTEND
30
31public:
32 // prevent constructor by default
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCAPI PackInstance(
39 ::gsl::not_null<::std::shared_ptr<::ResourcePack>> pack,
40 int subpackIndex,
41 bool isDependent,
42 ::PackSettings* packSettings
43 );
44
45 MCAPI PackInstance(
46 ::gsl::not_null<::std::shared_ptr<::ResourcePack>> pack,
47 ::std::string const& subpackName,
48 bool isDependent,
49 ::PackSettings* packSettings
50 );
51
52 MCAPI bool getResource(::Core::Path const& resourceName, ::std::string& resourceStream) const;
53
54 MCAPI ~PackInstance();
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void* $ctor(
61 ::gsl::not_null<::std::shared_ptr<::ResourcePack>> pack,
62 int subpackIndex,
63 bool isDependent,
64 ::PackSettings* packSettings
65 );
66
67 MCAPI void* $ctor(
68 ::gsl::not_null<::std::shared_ptr<::ResourcePack>> pack,
69 ::std::string const& subpackName,
70 bool isDependent,
71 ::PackSettings* packSettings
72 );
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCAPI void $dtor();
79 // NOLINTEND
80};
Definition Path.h:11
Definition PackInstance.h:16
Definition PackSettings.h:18
Definition Path.h:16
Definition ResourcePack.h:18