LeviLamina
Loading...
Searching...
No Matches
GameVersion.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class ListTag;
8// clang-format on
9
10class GameVersion {
11public:
12 // GameVersion inner types define
13 enum class Octet : uint {
14 Major = 0,
15 Minor = 1,
16 Patch = 2,
17 Revision = 3,
18 Beta = 4,
19 NumOctets = 5,
20 Invalid = 5,
21 };
22
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 20, uint[5]> mDigit;
27 ::ll::TypedStorage<8, 32, ::std::string> mString;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 GameVersion& operator=(GameVersion const&);
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCAPI GameVersion();
38
39 MCAPI GameVersion(::GameVersion const&);
40
41 MCAPI explicit GameVersion(::ListTag const& tag);
42
43 MCAPI GameVersion(uint major, uint minor, uint patch, uint revision, uint isBeta);
44
45 MCFOLD ::std::string const& asString() const;
46
47#ifdef LL_PLAT_C
48 MCAPI uint octet(::GameVersion::Octet octet) const;
49
50 MCAPI bool operator!=(::GameVersion const& other) const;
51#endif
52
53 MCAPI bool operator<(::GameVersion const& other) const;
54
55#ifdef LL_PLAT_C
56 MCAPI bool operator<=(::GameVersion const& other) const;
57
58 MCAPI bool operator>(::GameVersion const& other) const;
59#endif
60
61 MCAPI bool operator>=(::GameVersion const& other) const;
62
63 MCAPI ::std::unique_ptr<::ListTag> serialize() const;
64
65 MCAPI ~GameVersion();
66 // NOLINTEND
67
68public:
69 // static functions
70 // NOLINTBEGIN
71 MCAPI static ::GameVersion current();
72 // NOLINTEND
73
74public:
75 // static variables
76 // NOLINTBEGIN
77 MCAPI static ::GameVersion const& Zero();
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCAPI void* $ctor();
84
85 MCAPI void* $ctor(::GameVersion const&);
86
87 MCAPI void* $ctor(::ListTag const& tag);
88
89 MCAPI void* $ctor(uint major, uint minor, uint patch, uint revision, uint isBeta);
90 // NOLINTEND
91
92public:
93 // destructor thunk
94 // NOLINTBEGIN
95 MCFOLD void $dtor();
96 // NOLINTEND
97};
Definition ListTag.h:21