LeviLamina
Loading...
Searching...
No Matches
BoolOption.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
11class BoolOption : public ::Option {
12public:
13 // member variables
14 // NOLINTBEGIN
15 ::ll::TypedStorage<1, 1, bool> mValue;
16 ::ll::TypedStorage<1, 1, bool> mDefaultValue;
17 ::ll::TypedStorage<8, 64, ::std::function<bool(bool)>> mCoerceValueCallback;
18 // NOLINTEND
19
20#ifdef LL_PLAT_S
21#else // LL_PLAT_C
22public:
23 // prevent constructor by default
24 BoolOption();
25
26#endif
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector) /*override*/;
31
32 virtual void load(::std::string const& valueString) /*override*/;
33 // NOLINTEND
34
35public:
36 // member functions
37 // NOLINTBEGIN
38#ifdef LL_PLAT_C
39 MCAPI BoolOption(
40 ::OptionID id,
41 ::OptionOwnerType ownerType,
42 ::OptionResetFlags resetFlags,
43 ::std::string const& captionId,
44 ::std::string const& saveTag,
45 bool value
46 );
47
48 MCAPI void reset(bool saveOptionChange);
49
50 MCAPI void set(bool v, bool saveOptionChange);
51
52 MCAPI void setDefault(bool defaultValue);
53#endif
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59#ifdef LL_PLAT_C
60 MCAPI void* $ctor(
61 ::OptionID id,
62 ::OptionOwnerType ownerType,
63 ::OptionResetFlags resetFlags,
64 ::std::string const& captionId,
65 ::std::string const& saveTag,
66 bool value
67 );
68#endif
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCAPI void $save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector);
75
76 MCAPI void $load(::std::string const& valueString);
77
78
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
static MCAPI void ** $vftable()