3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/pub_sub/Publisher.h"
13namespace Bedrock::PubSub::ThreadModel {
struct MultiThreaded; }
14namespace mce {
class UUID; }
17class ScriptPackSettingsCache {
25 struct CachedSettingsByPackId {
36 CachedSettingsByPackId& operator=(CachedSettingsByPackId
const&);
37 CachedSettingsByPackId(CachedSettingsByPackId
const&);
38 CachedSettingsByPackId();
45 ::std::unordered_map<::std::string, ::PackSettingValueAndDefault> values
53 $ctor(
::mce::UUID packId, ::std::unordered_map<::std::string, ::PackSettingValueAndDefault> values);
65 ScriptPackSettingsCache& operator=(ScriptPackSettingsCache
const&);
77 MCNAPI ::std::unordered_map<::std::string, ::PackSettingValueAndDefault>
const*
82 ::std::function<
void(::std::string
const&, ::std::variant<float, bool, ::std::string>
const&)> callback
87 ::std::string
const& name,
88 ::std::variant<float, bool, ::std::string>
const& value
97 MCNAPI
void*
$ctor(::std::vector<::PackInstance>
const& stack);
Definition Subscription.h:10
Definition PackInstance.h:28
MCAPI void * $ctor(::std::vector<::PackInstance > const &stack)
MCAPI void updatePackSetting(::mce::UUID packId, ::std::string const &name, ::std::variant< float, bool, ::std::string > const &value)
MCAPI::Bedrock::PubSub::Subscription registerObserver(::mce::UUID packId, ::std::function< void(::std::string const &, ::std::variant< float, bool, ::std::string > const &)> callback)
MCAPI ScriptPackSettingsCache()
MCAPI ScriptPackSettingsCache(::std::vector<::PackInstance > const &stack)
MCAPI void _initFromPackStack(::std::vector<::PackInstance > const &stack)
MCAPI ::std::unordered_map<::std::string, ::PackSettingValueAndDefault > const * getPackSettingsNameValueMap(::mce::UUID packId) const
Definition MultiThreaded.h:7
Definition PackSettingValueAndDefault.h:5
Definition ScriptPackSettingsCache.h:25
MCAPI CachedSettingsByPackId(::mce::UUID packId, ::std::unordered_map<::std::string, ::PackSettingValueAndDefault > values)
MCAPI void * $ctor(::mce::UUID packId, ::std::unordered_map<::std::string, ::PackSettingValueAndDefault > values)