LeviLamina
Loading...
Searching...
No Matches
ScriptMinecraftServerBindingModuleFactory.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
24class ScriptMinecraftServerBindingModuleFactory : public ::Scripting::GenericModuleBindingFactory {
25public:
26 // member variables
27 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 ScriptMinecraftServerBindingModuleFactory& operator=(ScriptMinecraftServerBindingModuleFactory const&);
37 ScriptMinecraftServerBindingModuleFactory(ScriptMinecraftServerBindingModuleFactory const&);
38 ScriptMinecraftServerBindingModuleFactory();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ~ScriptMinecraftServerBindingModuleFactory() /*override*/ = default;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
50 ::ServerLevel* level,
53 bool importRestricted
54 );
55
56 MCNAPI void _addVersions();
57
58 MCNAPI ::Scripting::ModuleBinding _generateBindings(
60 ::std::optional<::Scripting::ContextConfig> const& contextConfig,
61 bool allowUntagged,
62 ::std::vector<::std::string> const& additionalTags
63 );
64 // NOLINTEND
65
66public:
67 // static functions
68 // NOLINTBEGIN
69 MCNAPI static ::std::unordered_map<::std::string, ::std::unique_ptr<::ScriptModuleMinecraft::IComponentFactory>>&
71
72 MCNAPI static ::Scripting::ModuleDependency makeModuleDependencyFor(::Scripting::Version version);
73
74 MCNAPI static ::Scripting::ModuleDescriptor makeModuleDescriptorFor(::Scripting::Version version);
75 // NOLINTEND
76
77public:
78 // static variables
79 // NOLINTBEGIN
80 MCNAPI static char const*& ModuleName();
81
82 MCNAPI static ::mce::UUID const& ModuleUUID();
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCNAPI void* $ctor(
89 ::ServerLevel* level,
92 bool importRestricted
93 );
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCNAPI static void** $vftable();
100 // NOLINTEND
101};
MCAPI::Scripting::ModuleBinding _generateBindings(::Scripting::ModuleBindingBuilder &moduleBuilder, ::std::optional<::Scripting::ContextConfig > const &contextConfig, bool allowUntagged, ::std::vector<::std::string > const &additionalTags)
static MCAPI char const *& ModuleName()
static MCAPI ::Scripting::ModuleDependency makeModuleDependencyFor(::Scripting::Version version)
MCAPI ScriptMinecraftServerBindingModuleFactory(::ServerLevel *level, ::WeakRef<::ScriptModuleMinecraft::IScriptItemCustomComponentRegistry const > itemCustomComponentRegistry, ::WeakRef<::ScriptModuleMinecraft::ScriptBlockCustomComponentsRegistry const > blockCustomComponentRegistry, bool importRestricted)
static MCAPI ::mce::UUID const & ModuleUUID()
static MCAPI ::Scripting::ModuleDescriptor makeModuleDescriptorFor(::Scripting::Version version)
static MCAPI ::std::unordered_map<::std::string, ::std::unique_ptr<::ScriptModuleMinecraft::IComponentFactory > > & getActorComponentFactories()
MCAPI void * $ctor(::ServerLevel *level, ::WeakRef<::ScriptModuleMinecraft::IScriptItemCustomComponentRegistry const > itemCustomComponentRegistry, ::WeakRef<::ScriptModuleMinecraft::ScriptBlockCustomComponentsRegistry const > blockCustomComponentRegistry, bool importRestricted)
Definition IComponentFactory.h:17
Definition IScriptItemCustomComponentRegistry.h:20
Definition ScriptBlockCustomComponentsRegistry.h:59
Definition GenericModuleBindingFactory.h:20
Definition ModuleBindingBuilder.h:27
Definition ServerLevel.h:50
Definition WeakRef.h:8
Definition UUID.h:7
Definition ContextConfig.h:20
Definition ModuleBinding.h:23
Definition ModuleDependency.h:12
Definition ModuleDescriptor.h:7
Definition Version.h:7
Definition Alias.h:14