LeviLamina
Loading...
Searching...
No Matches
BaseGameVersion.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
8// auto generated forward declare list
9// clang-format off
10namespace Json { class Value; }
11// clang-format on
12
13class BaseGameVersion {
14public:
15 // BaseGameVersion inner types declare
16 // clang-format off
18 // clang-format on
19
20 // BaseGameVersion inner types define
22
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 24, ::SemVersion> mSemVersion;
27 ::ll::TypedStorage<1, 1, bool> mNeverCompatible;
28 // NOLINTEND
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI BaseGameVersion();
34
35 MCAPI explicit BaseGameVersion(::BaseGameVersion::any_version_constructor);
36
37 MCAPI BaseGameVersion(::BaseGameVersion const& rhs);
38
39 MCAPI BaseGameVersion(ushort major, uint minor, uint patch);
40
41 MCAPI ::std::string asString() const;
42
43 MCFOLD ushort getMajor() const;
44
45 MCAPI ushort getMinor() const;
46
47 MCFOLD ushort getPatch() const;
48
49 MCFOLD bool isAnyVersion() const;
50
51 MCAPI bool isCompatibleWith(::BaseGameVersion const& baseGameVersion) const;
52
53 MCFOLD bool isNeverCompatible() const;
54
55 MCAPI bool isValid() const;
56
57 MCAPI bool operator!=(::BaseGameVersion const& rhs) const;
58
59 MCAPI bool operator<(::BaseGameVersion const& rhs) const;
60
61 MCAPI bool operator<=(::BaseGameVersion const& rhs) const;
62
63 MCAPI ::BaseGameVersion& operator=(::BaseGameVersion const&);
64
65 MCAPI bool operator==(::BaseGameVersion const& rhs) const;
66
67 MCAPI bool operator>(::BaseGameVersion const& rhs) const;
68
69 MCAPI bool operator>=(::BaseGameVersion const& rhs) const;
70 // NOLINTEND
71
72public:
73 // static functions
74 // NOLINTBEGIN
75 MCAPI static ::SemVersion::MatchType fromJsonArray(::Json::Value const& jsonArray, ::BaseGameVersion& output);
76
77 MCAPI static ::SemVersion::MatchType fromString(::std::string const& source, ::BaseGameVersion& output);
78 // NOLINTEND
79
80public:
81 // static variables
82 // NOLINTBEGIN
83 MCAPI static ::BaseGameVersion const& ANY();
84
85 MCAPI static ::BaseGameVersion const& EMPTY();
86
87 MCAPI static ::BaseGameVersion const& INCOMPATIBLE();
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93 MCAPI void* $ctor();
94
96
97 MCAPI void* $ctor(::BaseGameVersion const& rhs);
98
99 MCAPI void* $ctor(ushort major, uint minor, uint patch);
100 // NOLINTEND
101};
Definition Value.h:16
Definition BaseGameVersion.h:21