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
9class CommandRationalRange {
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();
38
39 MCAPI CommandRationalRange(float minFloatVal, float maxFloatVal, bool invert, bool inclusive);
40
41 MCAPI CommandRationalRange(int minIntVal, int maxIntVal, bool invert, bool inclusive);
42
43 MCAPI ::CommandRationalRange changeToValueType(::CommandRationalRange::ValueType const& valueType);
44
45 MCAPI ::std::variant<int, float> getMaxValue() const;
46
47 MCAPI ::std::variant<int, float> getMinValue() const;
48
49 MCAPI bool hasBoundType(::CommandRationalRange::BoundType const& type) const;
50
51 MCAPI bool isOfValueType(::CommandRationalRange::ValueType const& valueType) const;
52
53 MCAPI bool isWithinRange(::std::variant<int, float> const& value) const;
54
55 MCAPI void resetToValueType(::CommandRationalRange::ValueType const& valueType);
56
57 MCAPI void setInvert(bool val);
58
59 MCAPI void setValue(::std::variant<int, float> const& value, ::CommandRationalRange::BoundType const& type);
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCAPI void* $ctor();
66
67 MCAPI void* $ctor(float minFloatVal, float maxFloatVal, bool invert, bool inclusive);
68
69 MCAPI void* $ctor(int minIntVal, int maxIntVal, bool invert, bool inclusive);
70 // NOLINTEND
71};