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