LeviLamina
Loading...
Searching...
No Matches
ScriptActorComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/WeakEntityRef.h"
7#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
8#include "mc/scripting/modules/minecraft/components/ScriptComponent.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class Mob;
14namespace ScriptModuleMinecraft { class ScriptActor; }
15namespace Scripting { class WeakLifetimeScope; }
16namespace Scripting { struct Error; }
17// clang-format on
18
19namespace ScriptModuleMinecraft {
20
21class ScriptActorComponent : public ::ScriptModuleMinecraft::ScriptComponent {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mEntityRef;
26 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>> mHandle;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ScriptActorComponent& operator=(ScriptActorComponent const&);
32 ScriptActorComponent();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ~ScriptActorComponent() /*override*/;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI ScriptActorComponent(::ScriptModuleMinecraft::ScriptActorComponent const&);
44
45 MCAPI ScriptActorComponent(
46 ::WeakEntityRef const& entity,
48 ::std::string const& id
49 );
50
51 MCAPI ::Scripting::Error _functionError(::std::string_view functionName) const;
52
53 MCAPI ::Scripting::Error _getPropertyError(::std::string_view propertyName) const;
54
55 MCAPI ::Scripting::Error _setPropertyError(::std::string_view propertyName) const;
56
57 MCAPI ::Actor* _tryGetOwner() const;
58
59 MCAPI ::Mob* _tryGetOwnerAsMob() const;
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCAPI void* $ctor(::ScriptModuleMinecraft::ScriptActorComponent const&);
66
67 MCAPI void*
68 $ctor(::WeakEntityRef const& entity, ::Scripting::WeakLifetimeScope const& context, ::std::string const& id);
69 // NOLINTEND
70
71public:
72 // destructor thunk
73 // NOLINTBEGIN
74 MCAPI void $dtor();
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
83
84} // namespace ScriptModuleMinecraft
Definition Actor.h:113
Definition Mob.h:56
Definition ScriptActorComponent.h:21
Definition ScriptActor.h:64
Definition ScriptComponent.h:15
Definition WeakLifetimeScope.h:12
Definition WeakEntityRef.h:14
Definition Error.h:10
Definition context.h:5