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