Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptRidingComponentFactory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
7#include "mc/scripting/modules/minecraft/components/GenericScriptActorComponentFactory.h"
8
9// auto generated forward declare list
10// clang-format off
11class WeakEntityRef;
12namespace ScriptModuleMinecraft { class ScriptActorComponent; }
13namespace ScriptModuleMinecraft { class ScriptRidingComponent; }
14namespace Scripting { class WeakLifetimeScope; }
15// clang-format on
16
17namespace ScriptModuleMinecraft {
18
20: public ::ScriptModuleMinecraft::GenericScriptActorComponentFactory<::ScriptModuleMinecraft::ScriptRidingComponent> {
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorComponent> createComponent(
25 ::WeakEntityRef entity,
27 ::std::string const& id
28 ) /*override*/;
29
30 virtual bool hasComponent(::WeakEntityRef entity) const /*override*/;
31 // NOLINTEND
32
33public:
34 // virtual function thunks
35 // NOLINTBEGIN
36 MCNAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorComponent>
37 $createComponent(::WeakEntityRef entity, ::Scripting::WeakLifetimeScope const& scope, ::std::string const& id);
38
39 MCNAPI bool $hasComponent(::WeakEntityRef entity) const;
40
41
42 // NOLINTEND
43};
44
45} // namespace ScriptModuleMinecraft
Definition GenericScriptActorComponentFactory.h:8
Definition ScriptActorComponent.h:21
Definition ScriptRidingComponentFactory.h:20
MCAPI bool $hasComponent(::WeakEntityRef entity) const
MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorComponent > $createComponent(::WeakEntityRef entity, ::Scripting::WeakLifetimeScope const &scope, ::std::string const &id)
Definition ScriptRidingComponent.h:15
Definition WeakLifetimeScope.h:12
Definition WeakEntityRef.h:14