LeviLamina
Loading...
Searching...
No Matches
ScriptActorGlobalEventListener.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/events/ActorEventListener.h"
9#include "mc/world/events/EventListenerDispatcher.h"
10#include "mc/world/events/EventResult.h"
11
12// auto generated forward declare list
13// clang-format off
16struct ActorAttackEvent;
18struct ActorDiedEvent;
20struct ActorHealEvent;
22struct ActorHurtEvent;
23namespace ScriptModuleMinecraft { class IScriptWorldAfterEvents; }
24namespace ScriptModuleMinecraft { class ScriptV010Events; }
25namespace ScriptModuleMinecraft { class ScriptWorldAfterEvents; }
26// clang-format on
27
28namespace ScriptModuleMinecraft {
29
30class ScriptActorGlobalEventListener : public ::EventListenerDispatcher<::ActorEventListener> {
31public:
32 // ScriptActorGlobalEventListener inner types declare
33 // clang-format off
34 struct Listener;
35 // clang-format on
36
37 // ScriptActorGlobalEventListener inner types define
38 struct Listener {
39 public:
40 // member variables
41 // NOLINTBEGIN
42 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
43 ::ll::TypedStorage<8, 16, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldAfterEvents>>
44 mScriptEventsHandle;
45 ::ll::TypedStorage<1, 1, bool> mIsV010;
46 // NOLINTEND
47 };
48
49public:
50 // member variables
51 // NOLINTBEGIN
52 ::ll::TypedStorage<8, 24, ::std::vector<::ScriptModuleMinecraft::ScriptActorGlobalEventListener::Listener>>
53 mListeners;
54 // NOLINTEND
55
56public:
57 // virtual functions
58 // NOLINTBEGIN
59 virtual ::EventResult onEvent(::ActorAddEffectEvent const& eventData) /*override*/;
60
61 virtual ::EventResult onEvent(::ActorDefinitionEndedEvent const& eventData) /*override*/;
62
63 virtual ::EventResult onEvent(::ActorHealEvent const& eventData) /*override*/;
64
65 virtual ::EventResult onEvent(::ActorHurtEvent const& eventData) /*override*/;
66
67 virtual ::EventResult onEvent(::ActorDiedEvent const& eventData) /*override*/;
68
69 virtual ::EventResult onEvent(::ActorAttackEvent const& eventData) /*override*/;
70
71 virtual ::EventResult onEvent(::ActorHealthChangedEvent const& eventData) /*override*/;
72
73 virtual ::EventResult onEvent(::ActorDroppedItemEvent const& eventData) /*override*/;
74
75 virtual ::EventResult onEvent(::ActorAcquiredItemEvent const& eventData) /*override*/;
76 // NOLINTEND
77
78public:
79 // member functions
80 // NOLINTBEGIN
81 MCFOLD void registerListener(
84 );
85
86 MCFOLD void registerListener(
89 );
90
91 MCFOLD void
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98 MCAPI ::EventResult $onEvent(::ActorAddEffectEvent const& eventData);
99
100 MCAPI ::EventResult $onEvent(::ActorDefinitionEndedEvent const& eventData);
101
102 MCAPI ::EventResult $onEvent(::ActorHealEvent const& eventData);
103
104 MCAPI ::EventResult $onEvent(::ActorHurtEvent const& eventData);
105
106 MCAPI ::EventResult $onEvent(::ActorDiedEvent const& eventData);
107
108 MCAPI ::EventResult $onEvent(::ActorAttackEvent const& eventData);
109
110 MCAPI ::EventResult $onEvent(::ActorHealthChangedEvent const& eventData);
111
112 MCAPI ::EventResult $onEvent(::ActorDroppedItemEvent const& eventData);
113
114 MCAPI ::EventResult $onEvent(::ActorAcquiredItemEvent const& eventData);
115
116
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCNAPI static void** $vftable();
123 // NOLINTEND
124};
125
126} // namespace ScriptModuleMinecraft
Definition EventListenerDispatcher.h:6
Definition IScriptWorldAfterEvents.h:73
Definition ScriptActorGlobalEventListener.h:30
Definition ScriptV010Events.h:61
Definition ScriptWorldAfterEvents.h:94
Definition WeakLifetimeScope.h:14
Definition ActorAcquiredItemEvent.h:15
Definition ActorAddEffectEvent.h:9
Definition ActorAttackEvent.h:8
Definition ActorDefinitionEndedEvent.h:11
Definition ActorDiedEvent.h:14
Definition ActorDroppedItemEvent.h:9
Definition ActorHealEvent.h:9
Definition ActorHealthChangedEvent.h:8
Definition ActorHurtEvent.h:13
Definition ScriptActorGlobalEventListener.h:38
Definition TypedObjectHandle.h:8