LeviLamina
Loading...
Searching...
No Matches
ResourceInformation.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/sem_ver/SemVersion.h"
7#include "mc/platform/UUID.h"
8
9// auto generated forward declare list
10// clang-format off
11struct PackIdVersion;
12// clang-format on
13
14class ResourceInformation {
15public:
16 // ResourceInformation inner types define
17 enum class ResourceType : int {
18 Invalid = 0,
19 Resources = 1,
20 DataAddOn = 2,
21 ScriptAddOn = 3,
22 ClientScriptAddOn = 4,
23 Mandatory = 5,
24 WorldTemplate = 6,
25 Count = 7,
26 };
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 32, ::std::string> mDescription;
32 ::ll::TypedStorage<8, 24, ::SemVersion> mVersion;
33 ::ll::TypedStorage<8, 16, ::mce::UUID> mUUID;
34 ::ll::TypedStorage<4, 4, ::ResourceInformation::ResourceType> mType;
35 ::ll::TypedStorage<8, 32, ::std::string> mLanguage;
36 ::ll::TypedStorage<8, 32, ::std::string> mEntry;
37 // NOLINTEND
38
39#ifdef LL_PLAT_S
40public:
41 // prevent constructor by default
42 ResourceInformation& operator=(ResourceInformation const&);
43 ResourceInformation();
44
45#else // LL_PLAT_C
46public:
47 // prevent constructor by default
48 ResourceInformation();
49
50#endif
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI ResourceInformation(::ResourceInformation const&);
55
56 MCAPI ResourceInformation(
57 ::std::string const& description,
58 ::SemVersion const& version,
59 ::mce::UUID const& uuid,
60 ::std::string const& type,
61 ::std::string const& language,
62 ::std::string const& entry
63 );
64
65 MCAPI ResourceInformation(
66 ::std::string const& description,
67 ::SemVersion const& version,
68 ::mce::UUID const& uuid,
69 ::ResourceInformation::ResourceType type,
70 ::std::string const& language,
71 ::std::string const& entry
72 );
73
74#ifdef LL_PLAT_C
75 MCAPI ::ResourceInformation& operator=(::ResourceInformation const&);
76#endif
77
78 MCAPI bool satisfies(::PackIdVersion const& pack) const;
79
80 MCAPI ~ResourceInformation();
81 // NOLINTEND
82
83public:
84 // static functions
85 // NOLINTBEGIN
86 MCAPI static ::ResourceInformation::ResourceType ResourceTypeFromString(::std::string const& value);
87
88 MCAPI static ::std::string const& StringFromResourceType(::ResourceInformation::ResourceType value);
89 // NOLINTEND
90
91public:
92 // constructor thunks
93 // NOLINTBEGIN
94 MCAPI void* $ctor(::ResourceInformation const&);
95
96 MCAPI void* $ctor(
97 ::std::string const& description,
98 ::SemVersion const& version,
99 ::mce::UUID const& uuid,
100 ::std::string const& type,
101 ::std::string const& language,
102 ::std::string const& entry
103 );
104
105 MCAPI void* $ctor(
106 ::std::string const& description,
107 ::SemVersion const& version,
108 ::mce::UUID const& uuid,
109 ::ResourceInformation::ResourceType type,
110 ::std::string const& language,
111 ::std::string const& entry
112 );
113 // NOLINTEND
114
115public:
116 // destructor thunk
117 // NOLINTBEGIN
118 MCAPI void $dtor();
119 // NOLINTEND
120};
Definition SemVersion.h:15
Definition UUID.h:7
Definition PackIdVersion.h:10