LeviLamina
Loading...
Searching...
No Matches
ScriptPackSettingsCache.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Publisher.h"
7
8// auto generated forward declare list
9// clang-format off
10class PackInstance;
11namespace Bedrock::PubSub { class Subscription; }
12namespace Bedrock::PubSub::ThreadModel { struct MultiThreaded; }
13namespace mce { class UUID; }
14// clang-format on
15
16class ScriptPackSettingsCache {
17public:
18 // ScriptPackSettingsCache inner types declare
19 // clang-format off
21 // clang-format on
22
23 // ScriptPackSettingsCache inner types define
24 struct CachedSettingsByPackId {
25 public:
26 // member variables
27 // NOLINTBEGIN
31 // NOLINTEND
32
33 public:
34 // prevent constructor by default
35 CachedSettingsByPackId& operator=(CachedSettingsByPackId const&);
36 CachedSettingsByPackId(CachedSettingsByPackId const&);
37 CachedSettingsByPackId();
38 };
39
40public:
41 // member variables
42 // NOLINTBEGIN
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
48 ScriptPackSettingsCache& operator=(ScriptPackSettingsCache const&);
49 ScriptPackSettingsCache(ScriptPackSettingsCache const&);
50 ScriptPackSettingsCache();
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCNAPI void _initFromPackStack(::std::vector<::PackInstance> const& stack);
56
57 MCNAPI ::Bedrock::PubSub::Subscription registerObserver(
58 ::mce::UUID packId,
59 ::std::function<
60 void(::std::string const&, ::std::variant<float, bool, ::std::string, ::std::vector<::std::string>> const&)>
61 callback
62 );
63
64 MCNAPI void updatePackSetting(
65 ::mce::UUID packId,
66 ::std::string const& name,
67 ::std::variant<float, bool, ::std::string, ::std::vector<::std::string>> const& value
68 );
69 // NOLINTEND
70};
Definition Subscription.h:10
Definition PackInstance.h:16
MCAPI void _initFromPackStack(::std::vector<::PackInstance > const &stack)
MCAPI void updatePackSetting(::mce::UUID packId, ::std::string const &name, ::std::variant< float, bool, ::std::string, ::std::vector<::std::string > > const &value)
MCAPI::Bedrock::PubSub::Subscription registerObserver(::mce::UUID packId, ::std::function< void(::std::string const &, ::std::variant< float, bool, ::std::string, ::std::vector<::std::string > > const &)> callback)
Definition UUID.h:7
Definition ScriptPackSettingsCache.h:24
Definition Alias.h:14