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
29public:
30 // virtual functions
31 // NOLINTBEGIN
32#ifdef LL_PLAT_S
33 virtual ~IntOption() /*override*/ = default;
34#else // LL_PLAT_C
35 virtual ~IntOption() /*override*/;
36#endif
37
38 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector) /*override*/;
39
40 virtual void load(::std::string const& valueString) /*override*/;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI_C int _validate(int value);
47 // NOLINTEND
48
49public:
50 // constructor thunks
51 // NOLINTBEGIN
52 MCAPI_C void* $ctor(
53 ::OptionID id,
54 ::OptionOwnerType ownerType,
55 ::OptionResetFlags resetFlags,
56 ::std::string const& captionId,
57 ::std::string const& saveTag,
58 int value,
59 ::std::vector<int> const& values,
60 bool clampToRange,
61 ::GameVersion version
62 );
63
64 MCAPI_C void* $ctor(
65 ::OptionID id,
66 ::OptionOwnerType ownerType,
67 ::OptionResetFlags resetFlags,
68 ::std::string const& captionId,
69 ::std::string const& saveTag,
70 int value,
71 bool clampToRange,
72 int valueMin,
73 int valueMax,
74 ::GameVersion version
75 );
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81 MCAPI void $dtor();
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87#ifdef LL_PLAT_C
88 MCAPI void $save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector);
89
90 MCAPI void $load(::std::string const& valueString);
91#endif
92
93
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCNAPI static void** $vftable();
100 // NOLINTEND
101};
Definition GameVersion.h:10
Definition IntOption.h:16
static MCAPI void ** $vftable()