Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptActorComponents.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
8// auto generated forward declare list
9// clang-format off
10class EntityContext;
11namespace ScriptModuleMinecraft { class IScriptActorComponentFactory; }
12namespace ScriptModuleMinecraft { class ScriptComponentTypeEnumBuilder; }
13namespace Scripting { class ModuleBindingBuilder; }
14namespace Scripting { struct Version; }
15// clang-format on
16
17namespace ScriptModuleMinecraft {
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<
24 8,
25 64,
26 ::std::
27 unordered_map<::std::string_view, ::std::shared_ptr<::ScriptModuleMinecraft::IScriptActorComponentFactory>>>
28 mNativeFactories;
29 // NOLINTEND
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCNAPI ::std::unordered_map<
35 ::std::string_view,
36 ::std::shared_ptr<::ScriptModuleMinecraft::IScriptActorComponentFactory>> const&
38
39 MCNAPI ::std::vector<::std::string_view> getSupportedComponentIds(::WeakRef<::EntityContext> entityRef) const;
40
41 MCNAPI ::std::shared_ptr<::ScriptModuleMinecraft::IScriptActorComponentFactory> const&
42 tryGetFactory(::std::string const& componentName);
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCNAPI static void bind(
50 ::Scripting::Version const& scriptingVersion,
52 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptActorComponents> const& actorComponents
53 );
54 // NOLINTEND
55};
56
57} // namespace ScriptModuleMinecraft
Definition EntityContext.h:15
Definition IScriptActorComponentFactory.h:18
Definition ScriptActorComponents.h:19
static MCAPI void bind(::Scripting::ModuleBindingBuilder &moduleBuilder, ::Scripting::Version const &scriptingVersion, ::ScriptModuleMinecraft::ScriptComponentTypeEnumBuilder &actorComponentTypesEnum, ::std::shared_ptr<::ScriptModuleMinecraft::ScriptActorComponents > const &actorComponents)
MCAPI ::std::shared_ptr<::ScriptModuleMinecraft::IScriptActorComponentFactory > const & tryGetFactory(::std::string const &componentName)
MCAPI ::std::vector<::std::string_view > getSupportedComponentIds(::WeakRef<::EntityContext > entityRef) const
MCAPI ::std::unordered_map< ::std::string_view, ::std::shared_ptr<::ScriptModuleMinecraft::IScriptActorComponentFactory > > const & _getOrCreateActorComponentFactories() const
Definition ScriptComponentTypeEnumBuilder.h:18
Definition ModuleBindingBuilder.h:22
Definition WeakRef.h:8
Definition Version.h:7