LeviLamina
Loading...
Searching...
No Matches
InputModeFloatOption.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 InputModeFloatOption : public ::Option {
13public:
14 // member variables
15 // NOLINTBEGIN
16 ::ll::TypedStorage<4, 4, float const> VALUE_MIN;
17 ::ll::TypedStorage<4, 4, float const> VALUE_MAX;
18 ::ll::TypedStorage<8, 64, ::std::unordered_map<::InputMode, float>> mValues;
19 ::ll::TypedStorage<8, 64, ::std::unordered_map<::InputMode, float>> mDefaultValues;
20 ::ll::TypedStorage<4, 4, float const> DELTA;
21 // NOLINTEND
22
23#ifdef LL_PLAT_S
24#else // LL_PLAT_C
25public:
26 // prevent constructor by default
27 InputModeFloatOption();
28
29#endif
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector) /*override*/;
34
35 virtual void load(::std::string const& valueString) /*override*/;
36
37 virtual void load(::std::map<::std::string, ::std::string>& propertyMap) /*override*/;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43#ifdef LL_PLAT_C
44 MCAPI InputModeFloatOption(
45 ::OptionID id,
46 ::OptionOwnerType ownerType,
47 ::OptionResetFlags resetFlags,
48 ::std::string const& captionId,
49 ::std::string const& saveTag,
50 float value,
51 float valueMin,
52 float rangeMax
53 );
54
55 MCAPI void
56 _saveForInputMode(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector, ::InputMode mode);
57
58 MCAPI void set(::InputMode inputmode, float value, bool saveOptionChange);
59#endif
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65#ifdef LL_PLAT_C
66 MCAPI void* $ctor(
67 ::OptionID id,
68 ::OptionOwnerType ownerType,
69 ::OptionResetFlags resetFlags,
70 ::std::string const& captionId,
71 ::std::string const& saveTag,
72 float value,
73 float valueMin,
74 float rangeMax
75 );
76#endif
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82#ifdef LL_PLAT_C
83 MCAPI void $save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector);
84
85 MCFOLD void $load(::std::string const& valueString);
86
87 MCAPI void $load(::std::map<::std::string, ::std::string>& propertyMap);
88#endif
89
90
91 // NOLINTEND
92};