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/scripting/event_handlers/ScriptEventHandler.h"
11
12// auto generated forward declare list
13// 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 // vIndex: 6
28 virtual ::GameplayHandlerResult<::CoordinatorResult>
29 handleEvent(::BeforeWatchdogTerminateEvent& beforeWatchdogTerminateEvent) /*override*/;
30
31 // vIndex: 4
32 virtual ::GameplayHandlerResult<::CoordinatorResult>
33 handleEvent(::ScriptModuleStartupEvent const& moduleStartupEvent) /*override*/;
34
35 // vIndex: 3
36 virtual ::GameplayHandlerResult<::CoordinatorResult>
37 handleEvent(::ScriptModuleShutdownEvent const& moduleShutdownEvent) /*override*/;
38
39 // vIndex: 0
40 virtual ~ScriptScriptingEventHandler() /*override*/ = default;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI bool _handlScriptModuleShutdownEvent(
47 ::ScriptModuleShutdownEvent const& moduleShutdownEvent,
50 ) const;
51
52 MCAPI bool _handleScriptModuleStartupEvent(
53 ::ScriptModuleStartupEvent const& moduleStartupEvent,
56 ) const;
57
58 MCAPI bool _handleWatchdogTerminateEvent(
59 ::BeforeWatchdogTerminateEvent& beforeWatchdogTerminateEvent,
62 ) const;
63 // NOLINTEND
64
65public:
66 // destructor thunk
67 // NOLINTBEGIN
68
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCAPI ::GameplayHandlerResult<::CoordinatorResult>
75 $handleEvent(::BeforeWatchdogTerminateEvent& beforeWatchdogTerminateEvent);
76
77 MCAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::ScriptModuleStartupEvent const& moduleStartupEvent
78 );
79
80 MCAPI ::GameplayHandlerResult<::CoordinatorResult>
81 $handleEvent(::ScriptModuleShutdownEvent const& moduleShutdownEvent);
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCAPI static void** $vftable();
88 // NOLINTEND
89};
Definition EventHandlerDispatcher.h:6
Definition ScriptEventHandler.h:6
Definition ScriptScriptingEventHandler.h:23
Definition ScriptingEventHandler.h:12
Definition WeakLifetimeScope.h:12
Definition BeforeWatchdogTerminateEvent.h:13
Definition ScriptModuleShutdownEvent.h:10
Definition ScriptModuleStartupEvent.h:12
Definition TypedObjectHandle.h:8