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

Classes

struct  FeatureToggle

Public Types

using ExpectedDisabled = ::std::vector<::FeatureOptionID>
using ExpectedEnabled = ::std::vector<::FeatureOptionID>
using FeatureTogglesArray = ::std::vector<::FeatureToggles::FeatureToggle>
using LockFunction = ::std::function<void(bool&)>
using SetupFunction = ::std::function<void(::Option&)>

Public Member Functions

MCAPI FeatureToggles (::AppPlatform &appPlatform)
MCAPI ::std::function< void(bool &)> _getLockIfInGameOrOptionExpectationsNotMetLockCallback (::std::vector<::FeatureOptionID > expectedDisabledOptions, ::std::vector<::FeatureOptionID > expectedEnabledOptions)
MCAPI void _initialize (::AppPlatform &appPlatform)
MCAPI void _registerFeature (::FeatureOptionTabID tabID, ::FeatureOptionID featureID, ::std::string const &locName, ::std::string const &saveName, bool defaultValue, ::FeatureOptionID dependencyFeatureID, ::std::function< void(::Option &)> setup, ::std::function< void(bool &)> lock)
MCAPI void _registerFeatures ()
MCAPI bool isEnabled (::FeatureOptionID featureID) const
MCAPI void * $ctor (::AppPlatform &appPlatform)
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::FeatureToggles::FeatureToggle > > mFeatures
::ll::TypedStorage< 8, 24, ::std::vector<::Bedrock::PubSub::Subscription > > mOptionLockSubscriptions
::ll::TypedStorage< 8, 32, ::Core::PathBuffer<::std::string > > mFilePath
::ll::TypedStorage< 1, 1, bool > mIsInGame
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Constructor & Destructor Documentation

◆ FeatureToggles()

MCAPI FeatureToggles::FeatureToggles ( ::AppPlatform & appPlatform)
explicit
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.

Member Function Documentation

◆ _getLockIfInGameOrOptionExpectationsNotMetLockCallback()

MCAPI ::std::function< void(bool &)> FeatureToggles::_getLockIfInGameOrOptionExpectationsNotMetLockCallback ( ::std::vector<::FeatureOptionID > expectedDisabledOptions,
::std::vector<::FeatureOptionID > expectedEnabledOptions )
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.

◆ _initialize()

MCAPI void FeatureToggles::_initialize ( ::AppPlatform & appPlatform)
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.

◆ _registerFeature()

MCAPI void FeatureToggles::_registerFeature ( ::FeatureOptionTabID tabID,
::FeatureOptionID featureID,
::std::string const & locName,
::std::string const & saveName,
bool defaultValue,
::FeatureOptionID dependencyFeatureID,
::std::function< void(::Option &)> setup,
::std::function< void(bool &)> lock )
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.

◆ _registerFeatures()

MCAPI void FeatureToggles::_registerFeatures ( )
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.

◆ isEnabled()

MCAPI bool FeatureToggles::isEnabled ( ::FeatureOptionID featureID) const
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 * FeatureToggles::$ctor ( ::AppPlatform & appPlatform)
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.

◆ $dtor()

MCAPI void FeatureToggles::$dtor ( )
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.

◆ $vftable()

MCAPI void ** FeatureToggles::$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.

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