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();
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCAPI GameVersion(::GameVersion const&);
38
39 MCAPI explicit GameVersion(::ListTag const& tag);
40
41 MCAPI GameVersion(uint major, uint minor, uint patch, uint revision, uint isBeta);
42
43#ifdef LL_PLAT_C
44 MCAPI bool operator!=(::GameVersion const& other) const;
45#endif
46
47 MCAPI bool operator<(::GameVersion const& other) const;
48
49 MCAPI ::GameVersion& operator=(::GameVersion&&);
50
51 MCAPI ::GameVersion& operator=(::GameVersion const&);
52
53 MCAPI bool operator>=(::GameVersion const& other) const;
54
55 MCAPI ::std::unique_ptr<::ListTag> serialize() const;
56
57 MCAPI ~GameVersion();
58 // NOLINTEND
59
60public:
61 // static functions
62 // NOLINTBEGIN
63 MCAPI static ::GameVersion current();
64 // NOLINTEND
65
66public:
67 // static variables
68 // NOLINTBEGIN
69 MCAPI static ::GameVersion const& Zero();
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor(::GameVersion const&);
76
77 MCAPI void* $ctor(::ListTag const& tag);
78
79 MCAPI void* $ctor(uint major, uint minor, uint patch, uint revision, uint isBeta);
80 // NOLINTEND
81
82public:
83 // destructor thunk
84 // NOLINTBEGIN
85 MCFOLD void $dtor();
86 // NOLINTEND
87};
Definition ListTag.h:19