16class IntOption :
public ::Option {
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;
39 virtual ~IntOption() =
default;
41 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector) ;
43 virtual void load(::std::string
const& valueString) ;
52 ::OptionOwnerType ownerType,
53 ::OptionResetFlags resetFlags,
54 ::std::string
const& captionId,
55 ::std::string
const& saveTag,
57 ::std::vector<int>
const& values,
64 ::OptionOwnerType ownerType,
65 ::OptionResetFlags resetFlags,
66 ::std::string
const& captionId,
67 ::std::string
const& saveTag,
75 MCAPI
void set(
int value,
bool saveOptionChange);
77 MCAPI
void setValues(::std::vector<int> values);
87 ::OptionOwnerType ownerType,
88 ::OptionResetFlags resetFlags,
89 ::std::string
const& captionId,
90 ::std::string
const& saveTag,
92 ::std::vector<int>
const& values,
99 ::OptionOwnerType ownerType,
100 ::OptionResetFlags resetFlags,
101 ::std::string
const& captionId,
102 ::std::string
const& saveTag,
116 MCAPI
void $save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector);
118 MCAPI
void $load(::std::string
const& valueString);