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 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector) /*override*/;
46
47 virtual void load(::std::string const& valueString) /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53#ifdef LL_PLAT_C
54 MCAPI IntOption(
55 ::OptionID id,
56 ::OptionOwnerType ownerType,
57 ::OptionResetFlags resetFlags,
58 ::std::string const& captionId,
59 ::std::string const& saveTag,
60 int value,
61 ::std::vector<int> const& values,
62 bool clampToRange,
63 ::GameVersion version
64 );
65
66 MCAPI IntOption(
67 ::OptionID id,
68 ::OptionOwnerType ownerType,
69 ::OptionResetFlags resetFlags,
70 ::std::string const& captionId,
71 ::std::string const& saveTag,
72 int value,
73 bool clampToRange,
74 int valueMin,
75 int valueMax,
76 ::GameVersion version
77 );
78
79 MCAPI void reset(bool saveOptionChange);
80
81 MCAPI void set(int value, bool saveOptionChange);
82
83 MCFOLD void setCoerceSaveValueCallback(::std::function<int(int)> callback);
84
85 MCAPI void setValues(::std::vector<int> values);
86#endif
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92#ifdef LL_PLAT_C
93 MCAPI void* $ctor(
94 ::OptionID id,
95 ::OptionOwnerType ownerType,
96 ::OptionResetFlags resetFlags,
97 ::std::string const& captionId,
98 ::std::string const& saveTag,
99 int value,
100 ::std::vector<int> const& values,
101 bool clampToRange,
102 ::GameVersion version
103 );
104
105 MCAPI void* $ctor(
106 ::OptionID id,
107 ::OptionOwnerType ownerType,
108 ::OptionResetFlags resetFlags,
109 ::std::string const& captionId,
110 ::std::string const& saveTag,
111 int value,
112 bool clampToRange,
113 int valueMin,
114 int valueMax,
115 ::GameVersion version
116 );
117#endif
118 // NOLINTEND
119
120public:
121 // destructor thunk
122 // NOLINTBEGIN
123#ifdef LL_PLAT_C
124 MCFOLD void $dtor();
125#endif
126 // NOLINTEND
127
128public:
129 // virtual function thunks
130 // NOLINTBEGIN
131#ifdef LL_PLAT_C
132 MCAPI void $save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector);
133
134 MCAPI void $load(::std::string const& valueString);
135#endif
136
137
138 // NOLINTEND
139
140public:
141 // vftables
142 // NOLINTBEGIN
143 MCNAPI static void** $vftable();
144 // NOLINTEND
145};
Definition GameVersion.h:10
static MCAPI void ** $vftable()