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#ifdef LL_PLAT_C
28 MCAPI bool isCompatible(int version) const;
29#endif
30 // NOLINTEND
31
32public:
33 // static functions
34 // NOLINTBEGIN
35 MCAPI static ::CurrentCmdVersion const getVersionMapping(::SemVersion const& engineVersion);
36 // NOLINTEND
37};
Definition SemVersion.h:15