3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/settings/IOptionsDataProvider.h"
7#include "mc/deps/core/utility/pub_sub/Subscription.h"
8#include "mc/util/BidirectionalUnorderedMap.h"
22 ::ll::TypedStorage<8, 8, ::LevelDataWrapper&> mLevelData;
23 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mInfo;
24 ::ll::TypedStorage<8, 128, ::BidirectionalUnorderedMap<int, uint>> mIndexValueMap;
25 ::ll::TypedStorage<8, 24, ::std::vector<::Settings::OptionData>> mLabels;
26 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mLevelChangedSubscription;
27 ::ll::TypedStorage<8, 24, ::std::vector<::Bedrock::PubSub::Subscription>> mLevelDataSubscriptions;
32 SimulationDistanceDataProvider& operator=(SimulationDistanceDataProvider
const&);
33 SimulationDistanceDataProvider(SimulationDistanceDataProvider
const&);
34 SimulationDistanceDataProvider();
39 virtual bool canModify() const ;
41 virtual ::gsl::span<::Settings::OptionData const> getOptions() const ;
43 virtual
int getValue() const ;
45 virtual
void setValue(
int index) ;
47 virtual ::std::optional<::std::
string> const& getInfo() const ;
49 virtual ~SimulationDistanceDataProvider() ;
55 MCAPI SimulationDistanceDataProvider(
56 ::LevelDataWrapper& levelData,
57 ::std::function<::Bedrock::PubSub::Subscription(::std::function<
void(::LevelDataWrapper&)>)>
58 registerLevelChangeCallback
61 MCAPI uint _computeDefaultValue() const;
63 MCAPI
void _computeLabels();
65 MCAPI
void _updateData();
72 ::LevelDataWrapper& levelData,
73 ::std::function<::Bedrock::PubSub::Subscription(::std::function<
void(::LevelDataWrapper&)>)>
74 registerLevelChangeCallback
87 MCFOLD
bool $canModify() const;
89 MCAPI ::gsl::span<::Settings::OptionData const> $getOptions() const;
91 MCAPI
int $getValue() const;
93 MCAPI
void $setValue(
int index);
95 MCFOLD ::std::optional<::std::
string> const& $getInfo() const;
Definition LevelDataWrapper.h:14
Definition SimulationDistanceDataProvider.h:7
static MCAPI void ** $vftable()
Definition OptionData.h:7