Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
States.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace SharedTypes::v1_26_20::BlockDefinition {
6
7struct States {
8public:
9 // States inner types declare
10 // clang-format off
11 struct IntegerRange;
12 struct Values;
13 // clang-format on
14
15 // States inner types define
16 struct IntegerRange {
17 public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, int> mMin;
21 ::ll::TypedStorage<4, 4, int> mMax;
22 // NOLINTEND
23 };
24
25 struct Values {
26 public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<
30 8,
31 40,
32 ::std::variant<
33 ::std::vector<::std::string>,
34 ::std::vector<bool>,
35 ::std::vector<int>,
37 mValues;
38 // NOLINTEND
39 };
40
41 using BooleanState = ::std::vector<bool>;
42
43 using DataType = ::std::unordered_map<
44 ::std::string,
45 ::std::variant<
46 ::std::vector<::std::string>,
47 ::std::vector<bool>,
48 ::std::vector<int>,
50
52
53 using IntegerState = ::std::vector<int>;
54
55 using StatesVariant = ::std::variant<
56 ::std::vector<::std::string>,
57 ::std::vector<bool>,
58 ::std::vector<int>,
60
61 using StringState = ::std::vector<::std::string>;
62
64
65 using ValuesVariant = ::std::variant<
66 ::std::vector<::std::string>,
67 ::std::vector<bool>,
68 ::std::vector<int>,
70
71public:
72 // member variables
73 // NOLINTBEGIN
74 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::vector<::std::string>>> mStringStates;
75 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::vector<bool>>> mBooleanStates;
76 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::vector<int>>> mIntegerStates;
77 ::ll::TypedStorage<
78 8,
79 64,
80 ::std::unordered_map<::std::string, ::SharedTypes::v1_26_20::BlockDefinition::States::IntegerRange>>
81 mIntegerRangeStates;
82 // NOLINTEND
83
84public:
85 // prevent constructor by default
86 States(States const&);
87
88public:
89 // member functions
90 // NOLINTBEGIN
91 MCNAPI States();
92
93 MCNAPI ::SharedTypes::v1_26_20::BlockDefinition::States&
95
96 MCNAPI ::SharedTypes::v1_26_20::BlockDefinition::States&
98
99 MCNAPI ~States();
100 // NOLINTEND
101
102public:
103 // constructor thunks
104 // NOLINTBEGIN
105 MCNAPI void* $ctor();
106 // NOLINTEND
107
108public:
109 // destructor thunk
110 // NOLINTBEGIN
111 MCNAPI void $dtor();
112 // NOLINTEND
113};
114
115} // namespace SharedTypes::v1_26_20::BlockDefinition
MCAPI::SharedTypes::v1_26_20::BlockDefinition::States & operator=(::SharedTypes::v1_26_20::BlockDefinition::States &&)
MCAPI::SharedTypes::v1_26_20::BlockDefinition::States & operator=(::SharedTypes::v1_26_20::BlockDefinition::States const &)