Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
FloatOption Class Reference
Inheritance diagram for FloatOption:

Public Types

using BoolFilter = ::std::function<bool(bool)>
using SaveIntCallback = ::std::function<int(int)>
using StringFilter = ::std::function<::std::string(::std::string const&)>

Public Member Functions

virtual void save (::std::vector<::std::pair<::std::string, ::std::string > > &propertyVector)
virtual void load (::std::string const &valueString)
virtual void load (::std::map<::std::string, ::std::string > &propertyMap)
virtual void load (::Json::Value const &valueJson)
MCAPI void _updatePropertyVector (::std::vector<::std::pair<::std::string, ::std::string > > &propertyVector, ::std::string const &value)
MCAPI::Bedrock::PubSub::Subscription registerLock (::std::function< void(bool &)> isModifiableCondition)
MCAPI void * $ctor (::OptionID id, ::OptionOwnerType ownerType, ::OptionResetFlags resetFlags, ::std::string const &captionId, ::std::string const &saveTag, ::OptionType optionType, ::GameVersion version)
MCAPI void $load (::std::map<::std::string, ::std::string > &propertyMap)
MCAPI void $load (::Json::Value const &valueJson)

Static Public Member Functions

static MCAPI void ** $vftable ()
static MCAPI bool read (::std::string const &valueString, bool &output)

Public Attributes

::ll::TypedStorage< 4, 4, float const > VALUE_MIN
::ll::TypedStorage< 4, 4, float const > VALUE_MAX
::ll::TypedStorage< 4, 4, float > mValue
::ll::TypedStorage< 4, 4, float > mDefaultValue
::ll::TypedStorage< 4, 4, float const > DELTA
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::Option::Impl > > mImpl

Member Function Documentation

◆ save()

virtual void FloatOption::save ( ::std::vector<::std::pair<::std::string, ::std::string > > & propertyVector)
virtual

Implements Option.

◆ load()

virtual void FloatOption::load ( ::std::string const & valueString)
virtual

Implements Option.

◆ $vftable()

MCAPI void ** FloatOption::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _updatePropertyVector()

MCAPI void Option::_updatePropertyVector ( ::std::vector<::std::pair<::std::string, ::std::string > > & propertyVector,
::std::string const & value )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ registerLock()

MCAPI::Bedrock::PubSub::Subscription Option::registerLock ( ::std::function< void(bool &)> isModifiableCondition)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ read()

MCAPI bool Option::read ( ::std::string const & valueString,
bool & output )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * Option::$ctor ( ::OptionID id,
::OptionOwnerType ownerType,
::OptionResetFlags resetFlags,
::std::string const & captionId,
::std::string const & saveTag,
::OptionType optionType,
::GameVersion version )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $load() [1/2]

MCAPI void Option::$load ( ::std::map<::std::string, ::std::string > & propertyMap)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $load() [2/2]

MCAPI void Option::$load ( ::Json::Value const & valueJson)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: