LeviLamina
Loading...
Searching...
No Matches
CommandRationalRange.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CommandFloatRange.h"
7#include "mc/server/commands/CommandIntegerRange.h"
8
10public:
11 // CommandRationalRange inner types define
12 enum class BoundType : uchar {
13 Undefined = 0,
14 Min = 1,
15 Max = 2,
16 };
17
18 enum class ValueType : int {
19 Undefined = 0,
20 Int = 1,
21 Float = 2,
22 };
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 16, ::std::variant<::CommandIntegerRange, ::CommandFloatRange>> mRange;
28 ::ll::TypedStorage<4, 4, ::CommandRationalRange::ValueType> mValueType;
29 ::ll::TypedStorage<1, 1, ::CommandRationalRange::BoundType> mBoundType;
30 ::ll::TypedStorage<1, 1, bool> mInvert;
31 ::ll::TypedStorage<1, 1, bool> mInclusive;
32 // NOLINTEND
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCAPI ::CommandRationalRange changeToValueType(::CommandRationalRange::ValueType const& valueType);
38
39 MCAPI bool isWithinRange(::std::variant<int, float> const& value) const;
40
41 MCAPI void setInvert(bool val);
42
43 MCAPI void setValue(::std::variant<int, float> const& value, ::CommandRationalRange::BoundType const& type);
44 // NOLINTEND
45};
Definition CommandRationalRange.h:9