LeviLamina
Loading...
Searching...
No Matches
ScriptPlayerGameplayHandler.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/CoordinatorResult.h"
8#include "mc/gameplayhandlers/EventHandlerDispatcher.h"
9#include "mc/gameplayhandlers/GameplayHandlerResult.h"
10#include "mc/gameplayhandlers/HandlerResult.h"
11#include "mc/gameplayhandlers/PlayerGameplayHandler.h"
12#include "mc/scripting/event_handlers/ScriptEventHandler.h"
13#include "mc/world/events/MutablePlayerGameplayEvent.h"
14#include "mc/world/events/PlayerGameplayEvent.h"
15
16// auto generated forward declare list
17// clang-format off
20namespace ScriptModuleMinecraft { class IScriptWorldBeforeEvents; }
21namespace Scripting { class WeakLifetimeScope; }
22// clang-format on
23
24class ScriptPlayerGameplayHandler : public ::EventHandlerDispatcher<::PlayerGameplayHandler>,
25 public ::ScriptEventHandler<::ScriptModuleMinecraft::IScriptWorldBeforeEvents> {
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::HandlerResult handleEvent(::PlayerDisconnectEvent const& playerDisconnectEvent) /*override*/;
30
31 virtual ::GameplayHandlerResult<::CoordinatorResult>
32 handleEvent(::MutablePlayerGameplayEvent<::CoordinatorResult>& event) /*override*/;
33
34 virtual ::GameplayHandlerResult<::CoordinatorResult>
35 handleEvent(::PlayerGameplayEvent<::CoordinatorResult> const& event) /*override*/;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI bool _handleCoordinatorPlayerGameplayEvent(
45 );
46
47 MCAPI bool _handlePlayerGameModeChangeEvent(
48 ::PlayerGameModeChangeEvent& playerGameModeChangeEvent,
51 ) const;
52 // NOLINTEND
53
54public:
55 // virtual function thunks
56 // NOLINTBEGIN
57 MCAPI ::HandlerResult $handleEvent(::PlayerDisconnectEvent const& playerDisconnectEvent);
58
59 MCAPI ::GameplayHandlerResult<::CoordinatorResult>
61
62 MCAPI ::GameplayHandlerResult<::CoordinatorResult>
63 $handleEvent(::PlayerGameplayEvent<::CoordinatorResult> const& event);
64
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
Definition EventHandlerDispatcher.h:6
Definition ScriptEventHandler.h:6
Definition IScriptWorldBeforeEvents.h:46
Definition ScriptPlayerGameplayHandler.h:25
static MCAPI void ** $vftable()
Definition WeakLifetimeScope.h:14
Definition MutablePlayerGameplayEvent.h:9
Definition PlayerDisconnectEvent.h:8
Definition PlayerGameModeChangeEvent.h:9
Definition PlayerGameplayEvent.h:40
Definition TypedObjectHandle.h:8