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/StrongTypedObjectHandle.h"
7#include "mc/deps/scripting/lifetime_registry/WeakTypedObjectHandle.h"
8#include "mc/deps/scripting/runtime/Result.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;
19namespace ScriptModuleMinecraft { class IScriptItemCustomComponentSignalCollection; }
20namespace ScriptModuleMinecraft { class ScriptCustomComponentParameterCache; }
21namespace ScriptModuleMinecraft { class ScriptItemCustomComponentInterface; }
22namespace ScriptModuleMinecraft { class ScriptItemStack; }
23namespace ScriptModuleMinecraft { struct ScriptCustomComponentInvalidRegistryError; }
24namespace ScriptModuleMinecraft { struct ScriptCustomComponentParameters; }
25namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentAlreadyRegisteredError; }
26namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadNewComponentError; }
27namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadNewEventError; }
28namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadVersionError; }
29namespace Scripting { class WeakLifetimeScope; }
30namespace cereal { struct ReflectionCtx; }
31// clang-format on
32
33namespace ScriptModuleMinecraft {
34
36public:
37 // ScriptItemCustomComponentRegistry inner types declare
38 // clang-format off
39 struct ComponentInfo;
40 // clang-format on
41
42 // ScriptItemCustomComponentRegistry inner types define
44 public:
45 // member variables
46 // NOLINTBEGIN
50 // NOLINTEND
51
52 public:
53 // prevent constructor by default
54 ComponentInfo& operator=(ComponentInfo const&);
57
58 public:
59 // member functions
60 // NOLINTBEGIN
62 // NOLINTEND
63
64 public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCNAPI void $dtor();
68 // NOLINTEND
69 };
70
71public:
72 // member variables
73 // NOLINTBEGIN
81 // NOLINTEND
82
83public:
84 // prevent constructor by default
88
89public:
90 // virtual functions
91 // NOLINTBEGIN
92 // vIndex: 0
93 virtual ~ScriptItemCustomComponentRegistry() /*override*/;
94
95 // vIndex: 1
96 virtual ::Scripting::Result<
97 void,
103 tryRegisterComponentV1(
104 ::HashedString const& componentName,
106 ) /*override*/;
107
108 // vIndex: 2
109 virtual ::Scripting::Result<
110 void,
116 tryRegisterComponent(
117 ::HashedString const& componentName,
119 ) /*override*/;
120
121 // vIndex: 1
122 virtual ::std::vector<::std::string_view> getValidComponentsForItem(
124 ) const /*override*/;
125
126 // vIndex: 2
127 virtual ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters> const&
128 tryGetCustomComponentParametersForItem(
130 ::std::string_view componentName,
132 ) const /*override*/;
133
134 // vIndex: 3
135 virtual ::ScriptDeferredEventListener& getEventListener() /*override*/;
136
137 // vIndex: 4
138 virtual void setCerealContext(::cereal::ReflectionCtx& ctx) /*override*/;
139
140 // vIndex: 1
141 virtual void _onReload() /*override*/;
142
143 // vIndex: 2
144 virtual void _onScriptInitializationComplete() /*override*/;
145 // NOLINTEND
146
147public:
148 // member functions
149 // NOLINTBEGIN
152 ::ScriptDeferredEventCoordinator& deferredEventCoordinator,
153 ::ItemRegistryRef itemRegistry,
154 ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection>&& signals,
156 );
157
158 MCNAPI void _bindComponentToCereal(::HashedString const& compName);
159
160 MCNAPI void _subscribeItemToComponents(::Item* item, ::std::unordered_set<::HashedString>& unusedComponents);
161
163
164 MCNAPI ::Scripting::Result<
165 void,
172 ::HashedString const& componentName,
174 );
175 // NOLINTEND
176
177public:
178 // constructor thunks
179 // NOLINTBEGIN
180 MCNAPI void* $ctor(
182 ::ScriptDeferredEventCoordinator& deferredEventCoordinator,
183 ::ItemRegistryRef itemRegistry,
184 ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection>&& signals,
186 );
187 // NOLINTEND
188
189public:
190 // destructor thunk
191 // NOLINTBEGIN
192 MCNAPI void $dtor();
193 // NOLINTEND
194
195public:
196 // virtual function thunks
197 // NOLINTBEGIN
198 MCNAPI ::Scripting::Result<
199 void,
206 ::HashedString const& componentName,
208 );
209
210 MCNAPI ::Scripting::Result<
211 void,
218 ::HashedString const& componentName,
220 );
221
222 MCNAPI ::std::vector<::std::string_view> $getValidComponentsForItem(
224 ) const;
225
226 MCNAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters> const&
229 ::std::string_view componentName,
231 ) const;
232
233 MCNAPI ::ScriptDeferredEventListener& $getEventListener();
234
236
237 MCNAPI void $_onReload();
238
240 // NOLINTEND
241
242public:
243 // vftables
244 // NOLINTBEGIN
246
248
250 // NOLINTEND
251};
252
253} // namespace ScriptModuleMinecraft
Definition HashedString.h:5
Definition ItemRegistryRef.h:32
Definition Item.h:65
Definition ScriptDeferredEventCoordinator.h:18
Definition ScriptDeferredEventListener.h:10
Definition IScriptItemCustomComponentRegistry.h:20
Definition ScriptCustomComponentParameterCache.h:19
Definition ScriptItemCustomComponentInterface.h:15
Definition ScriptItemCustomComponentRegistry.h:35
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 ScriptItemCustomComponentRegistry(::ServerScriptManagerEvents &events, ::ScriptDeferredEventCoordinator &deferredEventCoordinator, ::ItemRegistryRef itemRegistry, ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection > &&signals, ::ScriptModuleMinecraft::ScriptCustomComponentParameterCache &parameterCache)
MCAPI void _bindComponentToCereal(::HashedString const &compName)
MCAPI::ScriptDeferredEventListener & $getEventListener()
MCAPI void $setCerealContext(::cereal::ReflectionCtx &ctx)
MCAPI void * $ctor(::ServerScriptManagerEvents &events, ::ScriptDeferredEventCoordinator &deferredEventCoordinator, ::ItemRegistryRef itemRegistry, ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection > &&signals, ::ScriptModuleMinecraft::ScriptCustomComponentParameterCache &parameterCache)
MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters > const & $tryGetCustomComponentParametersForItem(::Scripting::WeakTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack > itemHandle, ::std::string_view componentName, ::Scripting::WeakLifetimeScope const &scope) 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 WeakLifetimeScope.h:12
Definition WeakTypedObjectHandle.h:8
Definition ScriptCustomComponentInvalidRegistryError.h:17
Definition ScriptItemCustomComponentAlreadyRegisteredError.h:16
Definition ScriptItemCustomComponentRegistry.h:43
Definition ScriptItemCustomComponentReloadNewComponentError.h:16
Definition ScriptItemCustomComponentReloadNewEventError.h:16
Definition ScriptItemCustomComponentReloadVersionError.h:16
Definition ServerScriptManagerEvents.h:13
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14