LeviLamina
Loading...
Searching...
No Matches
ScriptCustomComponentParameterCache.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Subscription.h"
7#include "mc/deps/scripting/JSON.h"
8#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
9#include "mc/deps/scripting/lifetime_registry/WeakLifetimeScope.h"
10
11// auto generated forward declare list
12// clang-format off
14namespace ScriptModuleMinecraft { struct ScriptCustomComponentParameterCacheHandle; }
15namespace ScriptModuleMinecraft { struct ScriptCustomComponentParameters; }
16namespace cereal { class DynamicValue; }
17// clang-format on
18
19namespace ScriptModuleMinecraft {
20
21class ScriptCustomComponentParameterCache {
22public:
23 // ScriptCustomComponentParameterCache inner types declare
24 // clang-format off
25 struct CachedHandle;
26 struct ParameterCache;
27 // clang-format on
28
29 // ScriptCustomComponentParameterCache inner types define
30 struct CachedHandle {
31 public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
35 ::ll::TypedStorage<
36 8,
37 32,
39 mCachedParameters;
40 // NOLINTEND
41 };
42
44 public:
45 // member variables
46 // NOLINTBEGIN
47 ::ll::TypedStorage<
48 8,
49 24,
50 ::std::vector<::ScriptModuleMinecraft::ScriptCustomComponentParameterCache::CachedHandle>>
51 mCachedScriptHandles;
52 ::ll::TypedStorage<8, 32, ::Scripting::JSON> mPayload;
53 // NOLINTEND
54
55 public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI ~ParameterCache();
59 // NOLINTEND
60
61 public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCAPI void $dtor();
65 // NOLINTEND
66 };
67
68public:
69 // member variables
70 // NOLINTBEGIN
71 ::ll::TypedStorage<
72 8,
73 64,
74 ::std::unordered_map<uint64, ::ScriptModuleMinecraft::ScriptCustomComponentParameterCache::ParameterCache>>
75 mCache;
76 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnReloadSubscription;
77 ::ll::TypedStorage<8, 56, ::ScriptModuleMinecraft::ScriptCustomComponentParameterCache::ParameterCache> mEmptyCache;
78 // NOLINTEND
79
80public:
81 // prevent constructor by default
82 ScriptCustomComponentParameterCache();
83
84public:
85 // member functions
86 // NOLINTBEGIN
87 MCAPI explicit ScriptCustomComponentParameterCache(::ServerScriptManagerEvents& events);
88
89 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters> const&
90 _getOrCreatePayload(
93 );
94
95 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters> const&
96 getOrCreateParameterPayload(
99 );
100
101 MCAPI ::ScriptModuleMinecraft::ScriptCustomComponentParameterCacheHandle
102 registerParameterPayload(::cereal::DynamicValue const& payload);
103
104 MCAPI ~ScriptCustomComponentParameterCache();
105 // NOLINTEND
106
107public:
108 // constructor thunks
109 // NOLINTBEGIN
110 MCAPI void* $ctor(::ServerScriptManagerEvents& events);
111 // NOLINTEND
112
113public:
114 // destructor thunk
115 // NOLINTBEGIN
116 MCAPI void $dtor();
117 // NOLINTEND
118};
119
120} // namespace ScriptModuleMinecraft
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:14
Definition DynamicValue.h:10
Definition ScriptCustomComponentParameterCacheHandle.h:7
Definition ScriptCustomComponentParameterCache.h:30
Definition ScriptCustomComponentParameterCache.h:43
Definition ScriptCustomComponentParameters.h:15
Definition ServerScriptManagerEvents.h:13