LeviLamina
Loading...
Searching...
No Matches
IntOption.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/options/option_types/Option.h"
7#include "mc/options/option_types/OptionID.h"
8#include "mc/options/option_types/OptionOwnerType.h"
9#include "mc/options/option_types/OptionResetFlags.h"
10
11// auto generated forward declare list
12// clang-format off
13class GameVersion;
14// clang-format on
15
16class IntOption : public ::Option {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, int const> VALUE_MAX;
21 ::ll::TypedStorage<4, 4, int const> VALUE_MIN;
22 ::ll::TypedStorage<4, 4, int> mValue;
23 ::ll::TypedStorage<4, 4, int> mDefaultValue;
24 ::ll::TypedStorage<1, 1, bool> mClampToRange;
25 ::ll::TypedStorage<8, 24, ::std::vector<int>> mPossibleValues;
26 ::ll::TypedStorage<8, 64, ::std::function<int(int)>> mCoerceSaveValueCallback;
27 // NOLINTEND
28
29#ifdef LL_PLAT_S
30#else // LL_PLAT_C
31public:
32 // prevent constructor by default
33 IntOption();
34
35#endif
36public:
37 // virtual functions
38 // NOLINTBEGIN
39#ifdef LL_PLAT_S
40 virtual ~IntOption() /*override*/ = default;
41#else // LL_PLAT_C
42 virtual ~IntOption() /*override*/;
43#endif
44
45#ifdef LL_PLAT_S
46 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>&) /*override*/;
47#else // LL_PLAT_C
48 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector) /*override*/;
49#endif
50
51#ifdef LL_PLAT_S
52 virtual void load(::std::string const&) /*override*/;
53#else // LL_PLAT_C
54 virtual void load(::std::string const& valueString) /*override*/;
55#endif
56
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62#ifdef LL_PLAT_C
63 MCAPI IntOption(
64 ::OptionID id,
65 ::OptionOwnerType ownerType,
66 ::OptionResetFlags resetFlags,
67 ::std::string const& captionId,
68 ::std::string const& saveTag,
69 int value,
70 ::std::vector<int> const& values,
71 bool clampToRange,
72 ::GameVersion version
73 );
74
75 MCAPI IntOption(
76 ::OptionID id,
77 ::OptionOwnerType ownerType,
78 ::OptionResetFlags resetFlags,
79 ::std::string const& captionId,
80 ::std::string const& saveTag,
81 int value,
82 bool clampToRange,
83 int valueMin,
84 int valueMax,
85 ::GameVersion version
86 );
87
88 MCAPI void set(int value, bool saveOptionChange);
89
90 MCAPI void setValues(::std::vector<int> values);
91#endif
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97#ifdef LL_PLAT_C
98 MCAPI void* $ctor(
99 ::OptionID id,
100 ::OptionOwnerType ownerType,
101 ::OptionResetFlags resetFlags,
102 ::std::string const& captionId,
103 ::std::string const& saveTag,
104 int value,
105 ::std::vector<int> const& values,
106 bool clampToRange,
107 ::GameVersion version
108 );
109
110 MCAPI void* $ctor(
111 ::OptionID id,
112 ::OptionOwnerType ownerType,
113 ::OptionResetFlags resetFlags,
114 ::std::string const& captionId,
115 ::std::string const& saveTag,
116 int value,
117 bool clampToRange,
118 int valueMin,
119 int valueMax,
120 ::GameVersion version
121 );
122#endif
123 // NOLINTEND
124
125public:
126 // destructor thunk
127 // NOLINTBEGIN
128 MCAPI void $dtor();
129 // NOLINTEND
130
131public:
132 // virtual function thunks
133 // NOLINTBEGIN
134#ifdef LL_PLAT_C
135 MCAPI void $save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector);
136
137 MCAPI void $load(::std::string const& valueString);
138#endif
139
140
141 // NOLINTEND
142
143public:
144 // vftables
145 // NOLINTBEGIN
146 MCNAPI static void** $vftable();
147 // NOLINTEND
148};
Definition GameVersion.h:10
static MCAPI void ** $vftable()