LeviLamina
Loading...
Searching...
No Matches
ScriptScriptingEventHandler.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/ScriptingEventHandler.h"
11#include "mc/scripting/event_handlers/ScriptEventHandler.h"
12
13// auto generated forward declare list
14// clang-format off
18namespace ScriptModuleMinecraft { class ScriptSystemBeforeEvents; }
19namespace Scripting { class WeakLifetimeScope; }
20// clang-format on
21
22class ScriptScriptingEventHandler : public ::EventHandlerDispatcher<::ScriptingEventHandler>,
23 public ::ScriptEventHandler<::ScriptModuleMinecraft::ScriptSystemBeforeEvents> {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ::GameplayHandlerResult<::CoordinatorResult>
28 handleEvent(::BeforeWatchdogTerminateEvent& beforeWatchdogTerminateEvent) /*override*/;
29
30 virtual ::GameplayHandlerResult<::CoordinatorResult>
31 handleEvent(::ScriptModuleStartupEvent const& moduleStartupEvent) /*override*/;
32
33 virtual ::GameplayHandlerResult<::CoordinatorResult>
34 handleEvent(::ScriptModuleShutdownEvent const& moduleShutdownEvent) /*override*/;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI bool _handlScriptModuleShutdownEvent(
41 ::ScriptModuleShutdownEvent const& moduleShutdownEvent,
44 ) const;
45
46 MCAPI bool _handleScriptModuleStartupEvent(
47 ::ScriptModuleStartupEvent const& moduleStartupEvent,
50 ) const;
51
52 MCAPI bool _handleWatchdogTerminateEvent(
53 ::BeforeWatchdogTerminateEvent& beforeWatchdogTerminateEvent,
56 ) const;
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCAPI ::GameplayHandlerResult<::CoordinatorResult>
63 $handleEvent(::BeforeWatchdogTerminateEvent& beforeWatchdogTerminateEvent);
64
65 MCAPI ::GameplayHandlerResult<::CoordinatorResult>
66 $handleEvent(::ScriptModuleStartupEvent const& moduleStartupEvent);
67
68 MCAPI ::GameplayHandlerResult<::CoordinatorResult>
69 $handleEvent(::ScriptModuleShutdownEvent const& moduleShutdownEvent);
70
71
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79};
Definition EventHandlerDispatcher.h:6
Definition ScriptEventHandler.h:6
Definition ScriptSystemBeforeEvents.h:25
Definition ScriptScriptingEventHandler.h:23
static MCAPI void ** $vftable()
Definition WeakLifetimeScope.h:14
Definition BeforeWatchdogTerminateEvent.h:9
Definition ScriptModuleShutdownEvent.h:8
Definition ScriptModuleStartupEvent.h:17
Definition TypedObjectHandle.h:8