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 virtual ~IntOption() /*override*/ = default;
40
41 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector) /*override*/;
42
43 virtual void load(::std::string const& valueString) /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49#ifdef LL_PLAT_C
50 MCAPI IntOption(
51 ::OptionID id,
52 ::OptionOwnerType ownerType,
53 ::OptionResetFlags resetFlags,
54 ::std::string const& captionId,
55 ::std::string const& saveTag,
56 int value,
57 ::std::vector<int> const& values,
58 bool clampToRange,
59 ::GameVersion version
60 );
61
62 MCAPI IntOption(
63 ::OptionID id,
64 ::OptionOwnerType ownerType,
65 ::OptionResetFlags resetFlags,
66 ::std::string const& captionId,
67 ::std::string const& saveTag,
68 int value,
69 bool clampToRange,
70 int valueMin,
71 int valueMax,
72 ::GameVersion version
73 );
74
75 MCAPI void set(int value, bool saveOptionChange);
76
77 MCAPI void setValues(::std::vector<int> values);
78#endif
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84#ifdef LL_PLAT_C
85 MCAPI void* $ctor(
86 ::OptionID id,
87 ::OptionOwnerType ownerType,
88 ::OptionResetFlags resetFlags,
89 ::std::string const& captionId,
90 ::std::string const& saveTag,
91 int value,
92 ::std::vector<int> const& values,
93 bool clampToRange,
94 ::GameVersion version
95 );
96
97 MCAPI void* $ctor(
98 ::OptionID id,
99 ::OptionOwnerType ownerType,
100 ::OptionResetFlags resetFlags,
101 ::std::string const& captionId,
102 ::std::string const& saveTag,
103 int value,
104 bool clampToRange,
105 int valueMin,
106 int valueMax,
107 ::GameVersion version
108 );
109#endif
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115#ifdef LL_PLAT_C
116 MCAPI void $save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector);
117
118 MCAPI void $load(::std::string const& valueString);
119#endif
120
121
122 // NOLINTEND
123};
Definition GameVersion.h:10