Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
InputModeBoolOption.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/input/InputMode.h"
7#include "mc/options/option_types/Option.h"
8#include "mc/options/option_types/OptionID.h"
9#include "mc/options/option_types/OptionOwnerType.h"
10#include "mc/options/option_types/OptionResetFlags.h"
11
12class InputModeBoolOption : public ::Option {
13public:
14 // member variables
15 // NOLINTBEGIN
16 ::ll::TypedStorage<8, 64, ::std::unordered_map<::InputMode, bool>> mValues;
17 ::ll::TypedStorage<8, 64, ::std::unordered_map<::InputMode, bool>> mDefaultValues;
18 // NOLINTEND
19
20#ifdef LL_PLAT_S
21#else // LL_PLAT_C
22public:
23 // prevent constructor by default
24 InputModeBoolOption();
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
34 virtual void load(::std::map<::std::string, ::std::string>& propertyMap) /*override*/;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40#ifdef LL_PLAT_C
41 MCNAPI InputModeBoolOption(
42 ::OptionID id,
43 ::OptionOwnerType ownerType,
44 ::OptionResetFlags resetFlags,
45 ::std::string const& captionId,
46 ::std::string const& saveTag,
47 bool value
48 );
49
50 MCNAPI InputModeBoolOption(
51 ::OptionID id,
52 ::OptionOwnerType ownerType,
53 ::OptionResetFlags resetFlags,
54 ::std::string const& captionId,
55 ::std::string const& saveTag,
56 bool valueMouse,
57 bool valueTouch,
58 bool valueGamePad
59 );
60
61 MCNAPI void
62 _saveForInputMode(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector, ::InputMode mode);
63
64 MCNAPI void set(::InputMode inputmode, bool value, bool saveOptionChange);
65#endif
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71#ifdef LL_PLAT_C
72 MCNAPI void* $ctor(
73 ::OptionID id,
74 ::OptionOwnerType ownerType,
75 ::OptionResetFlags resetFlags,
76 ::std::string const& captionId,
77 ::std::string const& saveTag,
78 bool value
79 );
80
81 MCNAPI void* $ctor(
82 ::OptionID id,
83 ::OptionOwnerType ownerType,
84 ::OptionResetFlags resetFlags,
85 ::std::string const& captionId,
86 ::std::string const& saveTag,
87 bool valueMouse,
88 bool valueTouch,
89 bool valueGamePad
90 );
91#endif
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97#ifdef LL_PLAT_C
98 MCNAPI void $save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector);
99
100 MCNAPI void $load(::std::string const& valueString);
101
102 MCNAPI void $load(::std::map<::std::string, ::std::string>& propertyMap);
103#endif
104
105
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftable();
112 // NOLINTEND
113};
static MCAPI void ** $vftable()
MCAPI void $load(::std::map<::std::string, ::std::string > &propertyMap)
MCAPI void * $ctor(::OptionID id, ::OptionOwnerType ownerType, ::OptionResetFlags resetFlags, ::std::string const &captionId, ::std::string const &saveTag, ::OptionType optionType, ::GameVersion version)