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;
40 virtual ~IntOption() =
default;
42 virtual ~IntOption() ;
46 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>&) ;
48 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector) ;
52 virtual void load(::std::string
const&) ;
54 virtual void load(::std::string
const& valueString) ;
65 ::OptionOwnerType ownerType,
66 ::OptionResetFlags resetFlags,
67 ::std::string
const& captionId,
68 ::std::string
const& saveTag,
70 ::std::vector<int>
const& values,
77 ::OptionOwnerType ownerType,
78 ::OptionResetFlags resetFlags,
79 ::std::string
const& captionId,
80 ::std::string
const& saveTag,
88 MCAPI
void set(
int value,
bool saveOptionChange);
90 MCAPI
void setValues(::std::vector<int> values);
100 ::OptionOwnerType ownerType,
101 ::OptionResetFlags resetFlags,
102 ::std::string
const& captionId,
103 ::std::string
const& saveTag,
105 ::std::vector<int>
const& values,
112 ::OptionOwnerType ownerType,
113 ::OptionResetFlags resetFlags,
114 ::std::string
const& captionId,
115 ::std::string
const& saveTag,
135 MCAPI
void $save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector);
137 MCAPI
void $load(::std::string
const& valueString);