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/scripting/lifetime_registry/StrongTypedObjectHandle.h"
8#include "mc/deps/scripting/runtime/Result.h"
9#include "mc/scripting/modules/minecraft/components/ScriptComponent.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class Mob;
15namespace ScriptModuleMinecraft { class ScriptActor; }
16namespace ScriptModuleMinecraft { struct ScriptInvalidActorError; }
17namespace Scripting { class WeakLifetimeScope; }
18namespace Scripting { struct ClassBinding; }
19namespace Scripting { struct Error; }
20// clang-format on
21
22namespace ScriptModuleMinecraft {
23
24class ScriptActorComponent : public ::ScriptModuleMinecraft::ScriptComponent {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mEntityRef;
29 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>> mHandle;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 ScriptActorComponent& operator=(ScriptActorComponent const&);
35 ScriptActorComponent();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ~ScriptActorComponent() /*override*/;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI ScriptActorComponent(::ScriptModuleMinecraft::ScriptActorComponent const&);
47
48 MCAPI ScriptActorComponent(
49 ::WeakEntityRef const& entity,
51 ::std::string const& id
52 );
53
54 MCAPI ::Scripting::Error _functionError(::std::string_view functionName) const;
55
56 MCAPI ::Scripting::Error _getPropertyError(::std::string_view propertyName) const;
57
58 MCAPI ::Scripting::Error _setPropertyError(::std::string_view propertyName) const;
59
60 MCAPI ::Actor* _tryGetOwner() const;
61
62 MCAPI ::Mob* _tryGetOwnerAsMob() const;
63
64 MCAPI ::Scripting::Result<
67 getEntityV2() const;
68 // NOLINTEND
69
70public:
71 // static functions
72 // NOLINTBEGIN
73 MCAPI static ::Scripting::ClassBinding bind();
74
75 MCAPI static ::Scripting::ClassBinding bindV010();
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81 MCAPI void* $ctor(::ScriptModuleMinecraft::ScriptActorComponent const&);
82
83 MCAPI void*
84 $ctor(::WeakEntityRef const& entity, ::Scripting::WeakLifetimeScope const& context, ::std::string const& id);
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90 MCAPI void $dtor();
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
99
100} // namespace ScriptModuleMinecraft
Definition Actor.h:123
Definition Mob.h:56
Definition ScriptActorComponent.h:24
Definition ScriptActor.h:69
Definition ScriptComponent.h:15
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:14
Definition WeakEntityRef.h:14
Definition ScriptInvalidActorError.h:18
Definition ClassBinding.h:19
Definition Error.h:10
Definition context.h:5