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 // vIndex: 27
30 virtual ::HandlerResult handleEvent(::PlayerDisconnectEvent const& playerDisconnectEvent) /*override*/;
31
32 // vIndex: 1
33 virtual ::GameplayHandlerResult<::CoordinatorResult>
34 handleEvent(::MutablePlayerGameplayEvent<::CoordinatorResult>& event) /*override*/;
35
36 // vIndex: 2
37 virtual ::GameplayHandlerResult<::CoordinatorResult>
38 handleEvent(::PlayerGameplayEvent<::CoordinatorResult> const& event) /*override*/;
39
40 // vIndex: 0
41 virtual ~ScriptPlayerGameplayHandler() /*override*/ = default;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
51 );
52
57 ) const;
58
60 ::PlayerDisconnectEvent const& playerDisconnectEvent,
63 ) const;
64
66 ::PlayerGameModeChangeEvent& playerGameModeChangeEvent,
69 ) const;
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCNAPI ::HandlerResult $handleEvent(::PlayerDisconnectEvent const& playerDisconnectEvent);
76
77 MCNAPI ::GameplayHandlerResult<::CoordinatorResult>
79
80 MCNAPI ::GameplayHandlerResult<::CoordinatorResult>
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCNAPI static void** $vftable();
88 // NOLINTEND
89};
Definition EventHandlerDispatcher.h:6
Definition ScriptEventHandler.h:6
Definition ScriptPlayerGameplayHandler.h:25
MCAPI bool _handlePlayerGameModeChangeEvent(::PlayerGameModeChangeEvent &playerGameModeChangeEvent, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle) const
MCAPI ::GameplayHandlerResult<::CoordinatorResult > $handleEvent(::MutablePlayerGameplayEvent<::CoordinatorResult > &event)
static MCAPI void ** $vftable()
MCAPI bool _handleCoordinatorPlayerGameplayEvent(::PlayerGameplayEvent<::CoordinatorResult > const &event, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle)
MCAPI::HandlerResult $handleEvent(::PlayerDisconnectEvent const &playerDisconnectEvent)
MCAPI bool _handlePlayerDisconnectEvent(::PlayerDisconnectEvent const &playerDisconnectEvent, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle) const
MCAPI ::GameplayHandlerResult<::CoordinatorResult > $handleEvent(::PlayerGameplayEvent<::CoordinatorResult > const &event)
MCAPI bool _handleMutablePlayerGameplayEvent(::MutablePlayerGameplayEvent<::CoordinatorResult > &event, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle) const
Definition WeakLifetimeScope.h:12
Definition MutablePlayerGameplayEvent.h:9
Definition PlayerDisconnectEvent.h:8
Definition PlayerGameModeChangeEvent.h:9
Definition PlayerGameplayEvent.h:40
Definition TypedObjectHandle.h:8