LeviLamina
Loading...
Searching...
No Matches
ScriptActorEventListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/TypedObjectHandle.h"
7#include "mc/deps/scripting/lifetime_registry/WeakLifetimeScope.h"
8#include "mc/world/actor/ActorInitializationMethod.h"
9#include "mc/world/events/ActorEventListener.h"
10#include "mc/world/events/EventListenerDispatcher.h"
11#include "mc/world/events/EventResult.h"
12
13// auto generated forward declare list
14// clang-format off
15class Actor;
16struct ActorAttackEvent;
17struct ActorDiedEvent;
19struct ActorHurtEvent;
23namespace ScriptModuleMinecraft { class IScriptWorldAfterEvents; }
24// clang-format on
25
26namespace ScriptModuleMinecraft {
27
28class ScriptActorEventListener : public ::EventListenerDispatcher<::ActorEventListener> {
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 16, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldAfterEvents>>
33 mScriptEventsHandle;
34 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
35 ::ll::TypedStorage<1, 1, bool> mAfterListener;
36 // NOLINTEND
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 30
42 virtual ::EventResult onEvent(::ActorRemovedEvent const& actorRemovedEvent) /*override*/;
43
44 // vIndex: 29
45 virtual ::EventResult onEvent(::ActorRemoveEffectEvent const& actorRemoveEffectEvent) /*override*/;
46
47 // vIndex: 41
48 virtual ::EventResult onEvent(::ActorAttackEvent const& actorAttackEvent) /*override*/;
49
50 // vIndex: 34
51 virtual ::EventResult onEvent(::ActorHurtEvent const& actorHurtEvent) /*override*/;
52
53 // vIndex: 33
54 virtual ::EventResult onEvent(::ActorHealthChangedEvent const& actorHealthChangedEvent) /*override*/;
55
56 // vIndex: 37
57 virtual ::EventResult onEvent(::ActorDiedEvent const& actorDiedEvent) /*override*/;
58
59 // vIndex: 23
60 virtual ::EventResult onEvent(::ProjectileHitEvent const& projectileHitEvent) /*override*/;
61
62 // vIndex: 7
63 virtual ::EventResult onActorCreated(::Actor& actor, ::ActorInitializationMethod initializationMethod) /*override*/;
64
65 // vIndex: 0
66 virtual ~ScriptActorEventListener() /*override*/ = default;
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI ::EventResult $onEvent(::ActorRemovedEvent const& actorRemovedEvent);
73
74 MCFOLD ::EventResult $onEvent(::ActorRemoveEffectEvent const& actorRemoveEffectEvent);
75
76 MCAPI ::EventResult $onEvent(::ActorAttackEvent const& actorAttackEvent);
77
78 MCAPI ::EventResult $onEvent(::ActorHurtEvent const& actorHurtEvent);
79
80 MCAPI ::EventResult $onEvent(::ActorHealthChangedEvent const& actorHealthChangedEvent);
81
82 MCAPI ::EventResult $onEvent(::ActorDiedEvent const& actorDiedEvent);
83
84 MCAPI ::EventResult $onEvent(::ProjectileHitEvent const& projectileHitEvent);
85
86 MCAPI ::EventResult $onActorCreated(::Actor& actor, ::ActorInitializationMethod initializationMethod);
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCNAPI static void** $vftable();
93 // NOLINTEND
94};
95
96} // namespace ScriptModuleMinecraft
Definition Actor.h:102
Definition EventListenerDispatcher.h:6
Definition ScriptActorEventListener.h:28
Definition ActorAttackEvent.h:8
Definition ActorDiedEvent.h:14
Definition ActorHealthChangedEvent.h:8
Definition ActorHurtEvent.h:13
Definition ActorRemoveEffectEvent.h:9
Definition ActorRemovedEvent.h:8
Definition ProjectileHitEvent.h:13