LeviLamina
Loading...
Searching...
No Matches
FeatureToggles Class Reference
+ Inheritance diagram for FeatureToggles:

Classes

struct  FeatureToggle
 

Public Types

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

Public Member Functions

MCAPI ::std::function< void(::Option &)> _getDisableIfOtherOptionDisabledSetupCallback (::FeatureOptionID optionIdToCheck) const
 
MCAPI ::std::function< void(::Option &)> _getDisabledIfOptionExpectationsNotMetSetupCallback (::std::vector<::FeatureOptionID > expectedDisabledOptions, ::std::vector<::FeatureOptionID > expectedEnabledOptions)
 
MCAPI ::std::function< void(bool &)> _getLockIfInGameOrOptionExpectationsNotMetLockCallback (::std::vector<::FeatureOptionID > expectedDisabledOptions, ::std::vector<::FeatureOptionID > expectedEnabledOptions)
 
MCAPI ::std::function< void(bool &)> _getLockIfOtherOptionDisabledLockCallback (::FeatureOptionID optionIdToCheck) const
 
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 void _setupDependencies ()
 
MCAPI bool isEnabled (::FeatureOptionID featureID) const
 
MCAPI void $dtor ()
 
MCFOLD void * $ctor ()
 
MCFOLD void * $ctor (::Bedrock::EnableNonOwnerReferences const &)
 

Static Public Member Functions

static MCAPI ::std::unique_ptr<::FeatureToggles > & mFeatureToggles ()
 
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::ControlBlockmControlBlock
 

Member Function Documentation

◆ $vftable()

static 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: