LeviLamina
Loading...
Searching...
No Matches
ScriptItemCustomComponentRegistry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/WeakTypedObjectHandle.h"
7#include "mc/deps/scripting/runtime/Result.h"
8#include "mc/scripting/modules/minecraft/ScriptCustomComponentRegistry.h"
9#include "mc/scripting/modules/minecraft/items/IScriptItemCustomComponentRegistry.h"
10
11// auto generated forward declare list
12// clang-format off
13class HashedString;
14class Item;
15class ItemRegistryRef;
18namespace ScriptModuleMinecraft { class IScriptItemCustomComponentSignalCollection; }
19namespace ScriptModuleMinecraft { class ScriptItemCustomComponentInterface; }
20namespace ScriptModuleMinecraft { class ScriptItemStack; }
21namespace ScriptModuleMinecraft { struct ScriptCustomComponentInvalidRegistryError; }
22namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentAlreadyRegisteredError; }
23namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadNewComponentError; }
24namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadNewEventError; }
25namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadVersionError; }
26namespace cereal { struct ReflectionCtx; }
27// clang-format on
28
29namespace ScriptModuleMinecraft {
30
33public:
34 // ScriptItemCustomComponentRegistry inner types declare
35 // clang-format off
36 struct ComponentInfo;
37 // clang-format on
38
39 // ScriptItemCustomComponentRegistry inner types define
41 public:
42 // member variables
43 // NOLINTBEGIN
47 // NOLINTEND
48
49 public:
50 // prevent constructor by default
51 ComponentInfo& operator=(ComponentInfo const&);
54
55 public:
56 // member functions
57 // NOLINTBEGIN
59 // NOLINTEND
60
61 public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCNAPI void $dtor();
65 // NOLINTEND
66 };
67
68public:
69 // member variables
70 // NOLINTBEGIN
77 // NOLINTEND
78
79public:
80 // prevent constructor by default
84
85public:
86 // virtual functions
87 // NOLINTBEGIN
88 // vIndex: 0
89 virtual ~ScriptItemCustomComponentRegistry() /*override*/;
90
91 // vIndex: 1
92 virtual ::Scripting::Result<
93 void,
99 tryRegisterComponentV1(
100 ::HashedString const& componentName,
102 ) /*override*/;
103
104 // vIndex: 2
105 virtual ::Scripting::Result<
106 void,
112 tryRegisterComponent(
113 ::HashedString const& componentName,
115 ) /*override*/;
116
117 // vIndex: 1
118 virtual ::std::vector<::std::string_view> getValidComponentsForItem(
120 ) const /*override*/;
121
122 // vIndex: 2
123 virtual bool isValidComponentForItem(
125 ::std::string_view componentName
126 ) const /*override*/;
127
128 // vIndex: 6
129 virtual ::ScriptDeferredEventListener& getEventListener() /*override*/;
130
131 // vIndex: 3
132 virtual void onReload() /*override*/;
133
134 // vIndex: 4
135 virtual void onScriptInitializationComplete() /*override*/;
136
137 // vIndex: 5
138 virtual void onScriptModuleStartupComplete() /*override*/;
139
140 // vIndex: 7
141 virtual void setCerealContext(::cereal::ReflectionCtx& ctx) /*override*/;
142
143 // vIndex: 1
144 virtual void _onReload() /*override*/;
145
146 // vIndex: 2
147 virtual void _onScriptInitializationComplete() /*override*/;
148 // NOLINTEND
149
150public:
151 // member functions
152 // NOLINTBEGIN
154 ::ScriptDeferredEventCoordinator& deferredEventCoordinator,
155 ::ItemRegistryRef itemRegistry,
156 ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection>&& signals
157 );
158
159 MCNAPI void _bindComponentToCereal(::HashedString const& compName);
160
161 MCNAPI void _subscribeItemToComponents(::Item* item, ::std::unordered_set<::HashedString>& unusedComponents);
162
164
165 MCNAPI ::Scripting::Result<
166 void,
173 ::HashedString const& componentName,
175 );
176 // NOLINTEND
177
178public:
179 // constructor thunks
180 // NOLINTBEGIN
181 MCNAPI void* $ctor(
182 ::ScriptDeferredEventCoordinator& deferredEventCoordinator,
183 ::ItemRegistryRef itemRegistry,
184 ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection>&& signals
185 );
186 // NOLINTEND
187
188public:
189 // destructor thunk
190 // NOLINTBEGIN
191 MCNAPI void $dtor();
192 // NOLINTEND
193
194public:
195 // virtual function thunks
196 // NOLINTBEGIN
197 MCNAPI ::Scripting::Result<
198 void,
205 ::HashedString const& componentName,
207 );
208
209 MCNAPI ::Scripting::Result<
210 void,
217 ::HashedString const& componentName,
219 );
220
221 MCNAPI ::std::vector<::std::string_view> $getValidComponentsForItem(
223 ) const;
224
227 ::std::string_view componentName
228 ) const;
229
230 MCNAPI ::ScriptDeferredEventListener& $getEventListener();
231
232 MCNAPI void $onReload();
233
235
237
239
240 MCNAPI void $_onReload();
241
243 // NOLINTEND
244
245public:
246 // vftables
247 // NOLINTBEGIN
248 MCNAPI static void** $vftable();
249
251
253 // NOLINTEND
254};
255
256} // namespace ScriptModuleMinecraft
Definition HashedString.h:5
Definition ItemRegistryRef.h:31
Definition Item.h:65
Definition ScriptDeferredEventCoordinator.h:16
Definition ScriptDeferredEventListener.h:10
Definition IScriptItemCustomComponentRegistry.h:18
Definition ScriptCustomComponentRegistry.h:7
Definition ScriptItemCustomComponentInterface.h:15
Definition ScriptItemCustomComponentRegistry.h:32
MCAPI void * $ctor(::ScriptDeferredEventCoordinator &deferredEventCoordinator, ::ItemRegistryRef itemRegistry, ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection > &&signals)
MCAPI void _subscribeItemToComponents(::Item *item, ::std::unordered_set<::HashedString > &unusedComponents)
MCAPI ::Scripting::Result< void, ::ScriptModuleMinecraft::ScriptCustomComponentInvalidRegistryError, ::ScriptModuleMinecraft::ScriptItemCustomComponentAlreadyRegisteredError, ::ScriptModuleMinecraft::ScriptItemCustomComponentReloadVersionError, ::ScriptModuleMinecraft::ScriptItemCustomComponentReloadNewEventError, ::ScriptModuleMinecraft::ScriptItemCustomComponentReloadNewComponentError > $tryRegisterComponentV1(::HashedString const &componentName, ::ScriptModuleMinecraft::ScriptItemCustomComponentInterface &&closures)
MCAPI ::Scripting::Result< void, ::ScriptModuleMinecraft::ScriptCustomComponentInvalidRegistryError, ::ScriptModuleMinecraft::ScriptItemCustomComponentAlreadyRegisteredError, ::ScriptModuleMinecraft::ScriptItemCustomComponentReloadVersionError, ::ScriptModuleMinecraft::ScriptItemCustomComponentReloadNewEventError, ::ScriptModuleMinecraft::ScriptItemCustomComponentReloadNewComponentError > _tryRegisterComponent(::HashedString const &componentName, ::ScriptModuleMinecraft::ScriptItemCustomComponentInterface &&closures)
MCAPI void _bindComponentToCereal(::HashedString const &compName)
MCAPI ScriptItemCustomComponentRegistry(::ScriptDeferredEventCoordinator &deferredEventCoordinator, ::ItemRegistryRef itemRegistry, ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection > &&signals)
MCAPI::ScriptDeferredEventListener & $getEventListener()
MCAPI void $setCerealContext(::cereal::ReflectionCtx &ctx)
MCAPI bool $isValidComponentForItem(::Scripting::WeakTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack > itemHandle, ::std::string_view componentName) const
MCAPI ::std::vector<::std::string_view > $getValidComponentsForItem(::Scripting::WeakTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack > itemHandle) const
MCAPI ::Scripting::Result< void, ::ScriptModuleMinecraft::ScriptCustomComponentInvalidRegistryError, ::ScriptModuleMinecraft::ScriptItemCustomComponentAlreadyRegisteredError, ::ScriptModuleMinecraft::ScriptItemCustomComponentReloadVersionError, ::ScriptModuleMinecraft::ScriptItemCustomComponentReloadNewEventError, ::ScriptModuleMinecraft::ScriptItemCustomComponentReloadNewComponentError > $tryRegisterComponent(::HashedString const &componentName, ::ScriptModuleMinecraft::ScriptItemCustomComponentInterface &&closures)
Definition WeakTypedObjectHandle.h:8
Definition ScriptCustomComponentInvalidRegistryError.h:17
Definition ScriptItemCustomComponentAlreadyRegisteredError.h:15
Definition ScriptItemCustomComponentRegistry.h:40
Definition ScriptItemCustomComponentReloadNewComponentError.h:15
Definition ScriptItemCustomComponentReloadNewEventError.h:15
Definition ScriptItemCustomComponentReloadVersionError.h:15
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14