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/runtime/Result.h"
7#include "mc/scripting/modules/minecraft/ScriptCustomComponentRegistry.h"
8#include "mc/scripting/modules/minecraft/items/IScriptItemCustomComponentRegistry.h"
9
10// auto generated forward declare list
11// clang-format off
12class HashedString;
13class Item;
14class ItemRegistryRef;
17namespace ScriptModuleMinecraft { class IScriptItemCustomComponentSignalCollection; }
18namespace ScriptModuleMinecraft { class ScriptItemCustomComponentInterface; }
19namespace ScriptModuleMinecraft { struct ScriptCustomComponentInvalidRegistryError; }
20namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentAlreadyRegisteredError; }
21namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadNewComponentError; }
22namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadNewEventError; }
23namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadVersionError; }
24namespace cereal { struct ReflectionCtx; }
25// clang-format on
26
27namespace ScriptModuleMinecraft {
28
31public:
32 // ScriptItemCustomComponentRegistry inner types declare
33 // clang-format off
34 struct ComponentInfo;
35 // clang-format on
36
37 // ScriptItemCustomComponentRegistry inner types define
39 public:
40 // member variables
41 // NOLINTBEGIN
45 // NOLINTEND
46
47 public:
48 // prevent constructor by default
49 ComponentInfo& operator=(ComponentInfo const&);
52
53 public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI ~ComponentInfo();
57 // NOLINTEND
58
59 public:
60 // destructor thunk
61 // NOLINTBEGIN
62 MCFOLD void $dtor();
63 // NOLINTEND
64 };
65
66public:
67 // member variables
68 // NOLINTBEGIN
75 // NOLINTEND
76
77public:
78 // prevent constructor by default
82
83public:
84 // virtual functions
85 // NOLINTBEGIN
86 // vIndex: 0
87 virtual ~ScriptItemCustomComponentRegistry() /*override*/;
88
89 // vIndex: 1
90 virtual ::Scripting::Result<
91 void,
97 tryRegisterComponentV1(
98 ::HashedString const& componentName,
100 ) /*override*/;
101
102 // vIndex: 2
103 virtual ::Scripting::Result<
104 void,
110 tryRegisterComponent(
111 ::HashedString const& componentName,
113 ) /*override*/;
114
115 // vIndex: 6
116 virtual ::ScriptDeferredEventListener& getEventListener() /*override*/;
117
118 // vIndex: 3
119 virtual void onReload() /*override*/;
120
121 // vIndex: 4
122 virtual void onScriptInitializationComplete() /*override*/;
123
124 // vIndex: 5
125 virtual void onScriptModuleStartupComplete() /*override*/;
126
127 // vIndex: 7
128 virtual void setCerealContext(::cereal::ReflectionCtx& ctx) /*override*/;
129
130 // vIndex: 1
131 virtual void _onReload() /*override*/;
132
133 // vIndex: 2
134 virtual void _onScriptInitializationComplete() /*override*/;
135 // NOLINTEND
136
137public:
138 // member functions
139 // NOLINTBEGIN
141 ::ScriptDeferredEventCoordinator& deferredEventCoordinator,
142 ::ItemRegistryRef itemRegistry,
143 ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection>&& signals
144 );
145
146 MCAPI void _bindComponentToCereal(::HashedString const& compName);
147
148 MCAPI void _subscribeItemToComponents(::Item* item, ::std::unordered_set<::HashedString>& unusedComponents);
149
150 MCAPI void _subscribeItemsToComponents();
151
152 MCAPI ::Scripting::Result<
153 void,
159 _tryRegisterComponent(
160 ::HashedString const& componentName,
162 );
163 // NOLINTEND
164
165public:
166 // constructor thunks
167 // NOLINTBEGIN
168 MCAPI void* $ctor(
169 ::ScriptDeferredEventCoordinator& deferredEventCoordinator,
170 ::ItemRegistryRef itemRegistry,
171 ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection>&& signals
172 );
173 // NOLINTEND
174
175public:
176 // destructor thunk
177 // NOLINTBEGIN
178 MCAPI void $dtor();
179 // NOLINTEND
180
181public:
182 // virtual function thunks
183 // NOLINTBEGIN
184 MCAPI ::Scripting::Result<
185 void,
191 $tryRegisterComponentV1(
192 ::HashedString const& componentName,
194 );
195
196 MCAPI ::Scripting::Result<
197 void,
203 $tryRegisterComponent(
204 ::HashedString const& componentName,
206 );
207
208 MCFOLD ::ScriptDeferredEventListener& $getEventListener();
209
210 MCAPI void $onReload();
211
212 MCAPI void $onScriptInitializationComplete();
213
214 MCAPI void $onScriptModuleStartupComplete();
215
216 MCAPI void $setCerealContext(::cereal::ReflectionCtx& ctx);
217
218 MCAPI void $_onReload();
219
220 MCAPI void $_onScriptInitializationComplete();
221 // NOLINTEND
222
223public:
224 // vftables
225 // NOLINTBEGIN
226 MCAPI static void** $vftableForIScriptItemCustomComponentRegistry();
227
228 MCAPI static void** $vftableForScriptCustomComponentRegistry();
229 // NOLINTEND
230};
231
232} // namespace ScriptModuleMinecraft
Definition HashedString.h:5
Definition ItemRegistryRef.h:29
Definition Item.h:65
Definition ScriptDeferredEventCoordinator.h:16
Definition ScriptDeferredEventListener.h:10
Definition IScriptItemCustomComponentRegistry.h:23
Definition ScriptCustomComponentRegistry.h:7
Definition ScriptItemCustomComponentInterface.h:15
Definition ScriptItemCustomComponentRegistry.h:30
Definition ScriptCustomComponentInvalidRegistryError.h:17
Definition ScriptItemCustomComponentAlreadyRegisteredError.h:15
Definition ScriptItemCustomComponentRegistry.h:38
Definition ScriptItemCustomComponentReloadNewComponentError.h:15
Definition ScriptItemCustomComponentReloadNewEventError.h:15
Definition ScriptItemCustomComponentReloadVersionError.h:16
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14