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 ActorDiedEvent;
17struct ActorHurtEvent;
18namespace ScriptModuleMinecraft { class IScriptWorldAfterEvents; }
19// clang-format on
20
21namespace ScriptModuleMinecraft {
22
23class ScriptActorGlobalEventListener : public ::EventListenerDispatcher<::ActorEventListener> {
24public:
25 // ScriptActorGlobalEventListener inner types declare
26 // clang-format off
27 struct Listener;
28 // clang-format on
29
30 // ScriptActorGlobalEventListener inner types define
31 struct Listener {
32 public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
36 ::ll::TypedStorage<8, 16, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldAfterEvents>>
37 mScriptEventsHandle;
38 ::ll::TypedStorage<1, 1, bool> mIsV010;
39 // NOLINTEND
40 };
41
42public:
43 // member variables
44 // NOLINTBEGIN
45 ::ll::TypedStorage<8, 24, ::std::vector<::ScriptModuleMinecraft::ScriptActorGlobalEventListener::Listener>>
46 mListeners;
47 // NOLINTEND
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 virtual ::EventResult onEvent(::ActorAddEffectEvent const& eventData) /*override*/;
53
54 virtual ::EventResult onEvent(::ActorDefinitionEndedEvent const& eventData) /*override*/;
55
56 virtual ::EventResult onEvent(::ActorHurtEvent const& eventData) /*override*/;
57
58 virtual ::EventResult onEvent(::ActorDiedEvent const& eventData) /*override*/;
59
60 virtual ~ScriptActorGlobalEventListener() /*override*/ = default;
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCAPI ::EventResult $onEvent(::ActorAddEffectEvent const& eventData);
67
68 MCAPI ::EventResult $onEvent(::ActorDefinitionEndedEvent const& eventData);
69
70 MCAPI ::EventResult $onEvent(::ActorHurtEvent const& eventData);
71
72 MCAPI ::EventResult $onEvent(::ActorDiedEvent const& eventData);
73
74
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
83
84} // namespace ScriptModuleMinecraft
Definition EventListenerDispatcher.h:6
Definition IScriptWorldAfterEvents.h:68
Definition ScriptActorGlobalEventListener.h:23
Definition ActorAddEffectEvent.h:9
Definition ActorDefinitionEndedEvent.h:11
Definition ActorDiedEvent.h:14
Definition ActorHurtEvent.h:13
Definition ScriptActorGlobalEventListener.h:31