3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/options/option_types/OptionID.h"
7#include "mc/options/option_types/OptionOwnerType.h"
8#include "mc/options/option_types/OptionResetFlags.h"
9#include "mc/options/option_types/OptionType.h"
14namespace Bedrock::PubSub {
class Subscription; }
15namespace Json {
class Value; }
59 ::OptionOwnerType ownerType,
60 ::OptionResetFlags resetFlags,
61 ::std::string
const& captionId,
62 ::std::string
const& saveTag,
63 ::OptionType optionType,
75 ::OptionOwnerType ownerType,
76 ::OptionResetFlags resetFlags,
77 ::std::string
const& captionId,
78 ::std::string
const& saveTag,
79 ::OptionType optionType,
110 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>&) = 0;
113 virtual void load(::std::string
const&) = 0;
116 virtual void load(::std::map<::std::string, ::std::string>& propertyMap);
127 ::OptionOwnerType ownerType,
128 ::OptionResetFlags resetFlags,
129 ::std::string
const& captionId,
130 ::std::string
const& saveTag,
131 ::OptionType optionType,
136 ::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector,
137 ::std::string
const& value
142 MCNAPI ::Bedrock::PubSub::Subscription
registerLock(::std::function<
void(
bool&)> isModifiableCondition);
144 MCNAPI ::Bedrock::PubSub::Subscription
151 MCNAPI
static bool read(::std::string
const& valueString,
bool& output);
159 ::OptionOwnerType ownerType,
160 ::OptionResetFlags resetFlags,
161 ::std::string
const& captionId,
162 ::std::string
const& saveTag,
163 ::OptionType optionType,
171 MCNAPI
void $load(::std::map<::std::string, ::std::string>& propertyMap);
Definition GameVersion.h:10
MCAPI Impl(::OptionID id, ::OptionOwnerType ownerType, ::OptionResetFlags resetFlags, ::std::string const &captionId, ::std::string const &saveTag, ::OptionType optionType, ::GameVersion version)
MCAPI void * $ctor(::OptionID id, ::OptionOwnerType ownerType, ::OptionResetFlags resetFlags, ::std::string const &captionId, ::std::string const &saveTag, ::OptionType optionType, ::GameVersion version)
MCAPI::Bedrock::PubSub::Subscription registerObserver(::std::function< void(::Option const &)> onValueChangedCallback)
static MCAPI void ** $vftable()
MCAPI::Bedrock::PubSub::Subscription registerLock(::std::function< void(bool &)> isModifiableCondition)
static MCAPI bool read(::std::string const &valueString, bool &output)
MCAPI bool getBool() const
MCAPI void $load(::std::map<::std::string, ::std::string > &propertyMap)
MCAPI void _updatePropertyVector(::std::vector<::std::pair<::std::string, ::std::string > > &propertyVector, ::std::string const &value)
MCAPI void * $ctor(::OptionID id, ::OptionOwnerType ownerType, ::OptionResetFlags resetFlags, ::std::string const &captionId, ::std::string const &saveTag, ::OptionType optionType, ::GameVersion version)
MCAPI Option(::OptionID id, ::OptionOwnerType ownerType, ::OptionResetFlags resetFlags, ::std::string const &captionId, ::std::string const &saveTag, ::OptionType optionType, ::GameVersion version)
MCAPI void $load(::Json::Value const &valueJson)