LeviLamina
Loading...
Searching...
No Matches
ScriptActorGameplayHandler.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/gameplayhandlers/ActorGameplayHandler.h"
8#include "mc/gameplayhandlers/CoordinatorResult.h"
9#include "mc/gameplayhandlers/EventHandlerDispatcher.h"
10#include "mc/gameplayhandlers/GameplayHandlerResult.h"
11#include "mc/gameplayhandlers/HandlerResult.h"
12#include "mc/scripting/event_handlers/ScriptEventHandler.h"
13
14// auto generated forward declare list
15// clang-format off
18namespace ScriptModuleMinecraft { class IScriptWorldBeforeEvents; }
19namespace Scripting { class WeakLifetimeScope; }
20// clang-format on
21
22class ScriptActorGameplayHandler : public ::EventHandlerDispatcher<::ActorGameplayHandler>,
23 public ::ScriptEventHandler<::ScriptModuleMinecraft::IScriptWorldBeforeEvents> {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ::GameplayHandlerResult<::CoordinatorResult>
28 handleEvent(::ActorAddEffectEvent& actorEffectAddedEvent) /*override*/;
29
30 virtual ::HandlerResult handleEvent(::ActorRemovedEvent const& actorRemovedEvent) /*override*/;
31
32 virtual ~ScriptActorGameplayHandler() /*override*/ = default;
33 // NOLINTEND
34
35public:
36 // member functions
37 // NOLINTBEGIN
39 ::ActorAddEffectEvent& actorEffectAddedEvent,
42 ) const;
43
45 ::ActorRemovedEvent const& actorRemovedEvent,
48 ) const;
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCNAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::ActorAddEffectEvent& actorEffectAddedEvent);
55
56 MCNAPI ::HandlerResult $handleEvent(::ActorRemovedEvent const& actorRemovedEvent);
57
58
59 // NOLINTEND
60
61public:
62 // vftables
63 // NOLINTBEGIN
64 MCNAPI static void** $vftable();
65 // NOLINTEND
66};
Definition EventHandlerDispatcher.h:6
Definition ScriptActorGameplayHandler.h:23
MCAPI bool _handleActorRemoveEvent(::ActorRemovedEvent const &actorRemovedEvent, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle) const
MCAPI ::GameplayHandlerResult<::CoordinatorResult > $handleEvent(::ActorAddEffectEvent &actorEffectAddedEvent)
MCAPI::HandlerResult $handleEvent(::ActorRemovedEvent const &actorRemovedEvent)
MCAPI bool _handleActorEffectAddedEvent(::ActorAddEffectEvent &actorEffectAddedEvent, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle) const
static MCAPI void ** $vftable()
Definition ScriptEventHandler.h:6
Definition IScriptWorldBeforeEvents.h:40
Definition WeakLifetimeScope.h:7
Definition ActorAddEffectEvent.h:9
Definition ActorRemovedEvent.h:8
Definition TypedObjectHandle.h:8