LeviLamina
Loading...
Searching...
No Matches
CommandVersion.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CurrentCmdVersion.h"
7
8// auto generated forward declare list
9// clang-format off
10class SemVersion;
11// clang-format on
12
13class CommandVersion {
14public:
15 // member variables
16 // NOLINTBEGIN
17 int mFrom;
18 int mTo;
19 // NOLINTEND
20
21public:
22 CommandVersion(int from = 0, int to = 0x7FFFFFFF) : mFrom(from), mTo(to) {}
23
24public:
25 // member functions
26 // NOLINTBEGIN
27 MCAPI_C bool isCompatible(int version) const;
28 // NOLINTEND
29
30public:
31 // static functions
32 // NOLINTBEGIN
33 MCAPI static ::CurrentCmdVersion const getVersionMapping(::SemVersion const& engineVersion);
34 // NOLINTEND
35
36public:
37 // static variables
38 // NOLINTBEGIN
39 MCAPI static int const& CurrentVersion();
40 // NOLINTEND
41};
Definition SemVersion.h:15