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 public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI ~CachedHandle();
46 // NOLINTEND
47
48 public:
49 // destructor thunk
50 // NOLINTBEGIN
51 MCFOLD void $dtor();
52 // NOLINTEND
53 };
54
56 public:
57 // member variables
58 // NOLINTBEGIN
59 ::ll::TypedStorage<
60 8,
61 24,
62 ::std::vector<::ScriptModuleMinecraft::ScriptCustomComponentParameterCache::CachedHandle>>
63 mCachedScriptHandles;
64 ::ll::TypedStorage<8, 32, ::Scripting::JSON> mPayload;
65 // NOLINTEND
66
67 public:
68 // member functions
69 // NOLINTBEGIN
70 MCAPI ~ParameterCache();
71 // NOLINTEND
72
73 public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCAPI void $dtor();
77 // NOLINTEND
78 };
79
80public:
81 // member variables
82 // NOLINTBEGIN
83 ::ll::TypedStorage<
84 8,
85 64,
86 ::std::unordered_map<uint64, ::ScriptModuleMinecraft::ScriptCustomComponentParameterCache::ParameterCache>>
87 mCache;
88 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnReloadSubscription;
89 ::ll::TypedStorage<8, 56, ::ScriptModuleMinecraft::ScriptCustomComponentParameterCache::ParameterCache> mEmptyCache;
90 // NOLINTEND
91
92public:
93 // prevent constructor by default
94 ScriptCustomComponentParameterCache();
95
96public:
97 // member functions
98 // NOLINTBEGIN
99 MCAPI explicit ScriptCustomComponentParameterCache(::ServerScriptManagerEvents& events);
100
101 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters> const&
102 _getOrCreatePayload(
105 );
106
107 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters> const&
108 getOrCreateParameterPayload(
111 );
112
113 MCAPI ::ScriptModuleMinecraft::ScriptCustomComponentParameterCacheHandle
114 registerParameterPayload(::cereal::DynamicValue const& payload);
115 // NOLINTEND
116
117public:
118 // constructor thunks
119 // NOLINTBEGIN
120 MCAPI void* $ctor(::ServerScriptManagerEvents& events);
121 // NOLINTEND
122};
123
124} // namespace ScriptModuleMinecraft
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition DynamicValue.h:12
Definition ScriptCustomComponentParameterCacheHandle.h:7
Definition ScriptCustomComponentParameterCache.h:30
Definition ScriptCustomComponentParameterCache.h:55
Definition ScriptCustomComponentParameters.h:15
Definition ServerScriptManagerEvents.h:13