LeviLamina
Loading...
Searching...
No Matches
ScriptItemComponentRegistry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/WeakHandleFromThis.h"
7#include "mc/deps/scripting/runtime/Result.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace ScriptModuleMinecraft { class ScriptItemCustomComponentInterface; }
12namespace ScriptModuleMinecraft { struct ScriptCustomComponentInvalidRegistryError; }
13namespace ScriptModuleMinecraft { struct ScriptCustomComponentNameError; }
14namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentAlreadyRegisteredError; }
15namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadNewComponentError; }
16namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadNewEventError; }
17namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadVersionError; }
18namespace ScriptModuleMinecraft { struct ScriptNamespaceNameError; }
19namespace Scripting { class WeakLifetimeScope; }
20namespace Scripting { struct ClassBinding; }
21namespace Scripting { struct EngineError; }
22// clang-format on
23
24namespace ScriptModuleMinecraft {
25
27: public ::Scripting::WeakHandleFromThis<::ScriptModuleMinecraft::ScriptItemComponentRegistry> {
28public:
29 // member variables
30 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI ::Scripting::Result<
44 void,
52 registerCustomComponent(
54 ::std::string const& componentName,
56 );
57
58 MCAPI ::Scripting::Result<
59 void,
67 registerCustomComponentV1(
69 ::std::string const& componentName,
71 );
72 // NOLINTEND
73
74public:
75 // static functions
76 // NOLINTBEGIN
77 MCAPI static ::Scripting::ClassBinding bind();
78 // NOLINTEND
79};
80
81} // namespace ScriptModuleMinecraft
Definition ScriptItemComponentRegistry.h:27
Definition ScriptItemCustomComponentInterface.h:15
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:12
Definition ScriptCustomComponentInvalidRegistryError.h:17
Definition ScriptCustomComponentNameError.h:19
Definition ScriptItemCustomComponentAlreadyRegisteredError.h:15
Definition ScriptItemCustomComponentReloadNewComponentError.h:15
Definition ScriptItemCustomComponentReloadNewEventError.h:15
Definition ScriptItemCustomComponentReloadVersionError.h:16
Definition ScriptNamespaceNameError.h:18
Definition EngineError.h:10
Definition Alias.h:14