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 IScriptItemCustomComponentWriter; }
12namespace ScriptModuleMinecraft { class ScriptItemCustomComponentInterface; }
13namespace ScriptModuleMinecraft { struct ScriptCustomComponentInvalidRegistryError; }
14namespace ScriptModuleMinecraft { struct ScriptCustomComponentNameError; }
15namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentAlreadyRegisteredError; }
16namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadNewComponentError; }
17namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadNewEventError; }
18namespace ScriptModuleMinecraft { struct ScriptItemCustomComponentReloadVersionError; }
19namespace ScriptModuleMinecraft { struct ScriptNamespaceNameError; }
20namespace Scripting { class WeakLifetimeScope; }
21namespace Scripting { struct ClassBinding; }
22namespace Scripting { struct EngineError; }
23// clang-format on
24
25namespace ScriptModuleMinecraft {
26
27class ScriptItemComponentRegistry
28: public ::Scripting::WeakHandleFromThis<::ScriptModuleMinecraft::ScriptItemComponentRegistry> {
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 8, ::ScriptModuleMinecraft::IScriptItemCustomComponentWriter&> mCustomComponentWriter;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 ScriptItemComponentRegistry& operator=(ScriptItemComponentRegistry const&);
38 ScriptItemComponentRegistry(ScriptItemComponentRegistry const&);
39 ScriptItemComponentRegistry();
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI ::Scripting::Result<
45 void,
53 registerCustomComponent(
55 ::std::string const& componentName,
57 );
58
59 MCAPI ::Scripting::Result<
60 void,
68 registerCustomComponentV1(
70 ::std::string const& componentName,
72 );
73 // NOLINTEND
74
75public:
76 // static functions
77 // NOLINTBEGIN
78 MCAPI static ::Scripting::ClassBinding bind();
79 // NOLINTEND
80};
81
82} // namespace ScriptModuleMinecraft
Definition IScriptItemCustomComponentWriter.h:21
Definition ScriptItemCustomComponentInterface.h:15
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:7
Definition ScriptCustomComponentInvalidRegistryError.h:17
Definition ScriptCustomComponentNameError.h:19
Definition ScriptItemCustomComponentAlreadyRegisteredError.h:15
Definition ScriptItemCustomComponentReloadNewComponentError.h:15
Definition ScriptItemCustomComponentReloadNewEventError.h:15
Definition ScriptItemCustomComponentReloadVersionError.h:15
Definition ScriptNamespaceNameError.h:18
Definition ClassBinding.h:19
Definition EngineError.h:15