LeviLamina
Loading...
Searching...
No Matches
ScriptMinecraftModuleFactory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7#include "mc/deps/scripting/binding_factory/GenericModuleBindingFactory.h"
8
9// auto generated forward declare list
10// clang-format off
11class ServerLevel;
12namespace ScriptModuleMinecraft { class IComponentFactory; }
13namespace ScriptModuleMinecraft { class IScriptItemCustomComponentRegistry; }
14namespace ScriptModuleMinecraft { class ScriptBlockCustomComponentsRegistry; }
15namespace Scripting { class ModuleBindingBuilder; }
16namespace Scripting { struct ContextConfig; }
17namespace Scripting { struct ModuleBinding; }
18namespace Scripting { struct ModuleDependency; }
19namespace Scripting { struct ModuleDescriptor; }
20namespace Scripting { struct Version; }
21namespace mce { class UUID; }
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 // vIndex: 0
43 virtual ~ScriptMinecraftModuleFactory() /*override*/ = default;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
50 ::ServerLevel* level,
53 );
54
55 MCNAPI void _addVersions();
56
57 MCNAPI ::Scripting::ModuleBinding _generateBindings(
59 ::std::optional<::Scripting::ContextConfig> const& contextConfig,
60 bool allowUntagged,
61 ::std::vector<::std::string> const& additionalTags
62 );
63 // NOLINTEND
64
65public:
66 // static functions
67 // NOLINTBEGIN
68 MCNAPI static ::std::unordered_map<::std::string, ::std::unique_ptr<::ScriptModuleMinecraft::IComponentFactory>>&
70
71 MCNAPI static ::std::string getModuleName(::Scripting::Version version);
72
73 MCNAPI static ::Scripting::ModuleDependency makeModuleDependencyFor(::std::vector<::Scripting::Version> versions);
74
75 MCNAPI static ::Scripting::ModuleDescriptor makeModuleDescriptorFor(::Scripting::Version version);
76 // NOLINTEND
77
78public:
79 // static variables
80 // NOLINTBEGIN
81 MCNAPI static char const*& LegacyModuleName();
82
83 MCNAPI static char const*& ModuleName();
84
85 MCNAPI static ::mce::UUID const& ModuleUUID();
86 // NOLINTEND
87
88public:
89 // constructor thunks
90 // NOLINTBEGIN
91 MCNAPI void* $ctor(
92 ::ServerLevel* level,
95 );
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition ScriptMinecraftModuleFactory.h:24
static MCAPI ::Scripting::ModuleDescriptor makeModuleDescriptorFor(::Scripting::Version version)
static MCAPI char const *& ModuleName()
static MCAPI ::std::unordered_map<::std::string, ::std::unique_ptr<::ScriptModuleMinecraft::IComponentFactory > > & getActorComponentFactories()
static MCAPI ::mce::UUID const & ModuleUUID()
static MCAPI ::Scripting::ModuleDependency makeModuleDependencyFor(::std::vector<::Scripting::Version > versions)
MCAPI::Scripting::ModuleBinding _generateBindings(::Scripting::ModuleBindingBuilder &moduleBuilder, ::std::optional<::Scripting::ContextConfig > const &contextConfig, bool allowUntagged, ::std::vector<::std::string > const &additionalTags)
static MCAPI void ** $vftable()
MCAPI ScriptMinecraftModuleFactory(::ServerLevel *level, ::WeakRef<::ScriptModuleMinecraft::IScriptItemCustomComponentRegistry const > itemCustomComponentRegistry, ::WeakRef<::ScriptModuleMinecraft::ScriptBlockCustomComponentsRegistry const > blockCustomComponentRegistry)
static MCAPI ::std::string getModuleName(::Scripting::Version version)
static MCAPI char const *& LegacyModuleName()
MCAPI void * $ctor(::ServerLevel *level, ::WeakRef<::ScriptModuleMinecraft::IScriptItemCustomComponentRegistry const > itemCustomComponentRegistry, ::WeakRef<::ScriptModuleMinecraft::ScriptBlockCustomComponentsRegistry const > blockCustomComponentRegistry)
Definition GenericModuleBindingFactory.h:20
Definition ModuleBindingBuilder.h:30
Definition ServerLevel.h:54
Definition WeakRef.h:8
Definition Version.h:7
Definition Alias.h:14