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
36 virtual ~ScriptScriptingEventHandler() /*override*/ = default;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI bool _handlScriptModuleShutdownEvent(
43 ::ScriptModuleShutdownEvent const& moduleShutdownEvent,
46 ) const;
47
48 MCAPI bool _handleScriptModuleStartupEvent(
49 ::ScriptModuleStartupEvent const& moduleStartupEvent,
52 ) const;
53
54 MCAPI bool _handleWatchdogTerminateEvent(
55 ::BeforeWatchdogTerminateEvent& beforeWatchdogTerminateEvent,
58 ) const;
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCAPI ::GameplayHandlerResult<::CoordinatorResult>
65 $handleEvent(::BeforeWatchdogTerminateEvent& beforeWatchdogTerminateEvent);
66
67 MCAPI ::GameplayHandlerResult<::CoordinatorResult>
68 $handleEvent(::ScriptModuleStartupEvent const& moduleStartupEvent);
69
70 MCAPI ::GameplayHandlerResult<::CoordinatorResult>
71 $handleEvent(::ScriptModuleShutdownEvent const& moduleShutdownEvent);
72
73
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCNAPI static void** $vftable();
80 // NOLINTEND
81};
Definition EventHandlerDispatcher.h:6
Definition ScriptEventHandler.h:6
Definition ScriptSystemBeforeEvents.h:25
Definition ScriptScriptingEventHandler.h:23
static MCAPI void ** $vftable()
Definition WeakLifetimeScope.h:7
Definition BeforeWatchdogTerminateEvent.h:9
Definition ScriptModuleShutdownEvent.h:8
Definition ScriptModuleStartupEvent.h:16
Definition TypedObjectHandle.h:8