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
9class ResourceInformation {
10public:
11 // ResourceInformation inner types define
12 enum class ResourceType : int {
13 Invalid = 0,
14 Resources = 1,
15 DataAddOn = 2,
16 ScriptAddOn = 3,
17 ClientScriptAddOn = 4,
18 Mandatory = 5,
19 WorldTemplate = 6,
20 Count = 7,
21 };
22
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 32, ::std::string> mDescription;
27 ::ll::TypedStorage<8, 24, ::SemVersion> mVersion;
28 ::ll::TypedStorage<8, 16, ::mce::UUID> mUUID;
29 ::ll::TypedStorage<4, 4, ::ResourceInformation::ResourceType> mType;
30 ::ll::TypedStorage<8, 32, ::std::string> mLanguage;
31 ::ll::TypedStorage<8, 32, ::std::string> mEntry;
32 // NOLINTEND
33
34#ifdef LL_PLAT_S
35public:
36 // prevent constructor by default
37 ResourceInformation& operator=(ResourceInformation const&);
38 ResourceInformation();
39
40#else // LL_PLAT_C
41public:
42 // prevent constructor by default
43 ResourceInformation();
44
45#endif
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI ResourceInformation(::ResourceInformation const&);
50
51 MCAPI ResourceInformation(
52 ::std::string const& description,
53 ::SemVersion const& version,
54 ::mce::UUID const& uuid,
55 ::ResourceInformation::ResourceType type,
56 ::std::string const& language,
57 ::std::string const& entry
58 );
59
60#ifdef LL_PLAT_C
61 MCAPI ::ResourceInformation& operator=(::ResourceInformation const&);
62#endif
63
64 MCAPI ~ResourceInformation();
65 // NOLINTEND
66
67public:
68 // static functions
69 // NOLINTBEGIN
70 MCAPI static ::ResourceInformation::ResourceType ResourceTypeFromString(::std::string const& value);
71 // NOLINTEND
72
73public:
74 // constructor thunks
75 // NOLINTBEGIN
76 MCAPI void* $ctor(::ResourceInformation const&);
77
78 MCAPI void* $ctor(
79 ::std::string const& description,
80 ::SemVersion const& version,
81 ::mce::UUID const& uuid,
82 ::ResourceInformation::ResourceType type,
83 ::std::string const& language,
84 ::std::string const& entry
85 );
86 // NOLINTEND
87
88public:
89 // destructor thunk
90 // NOLINTBEGIN
91 MCAPI void $dtor();
92 // NOLINTEND
93};
Definition SemVersion.h:15
Definition UUID.h:7