LeviLamina
Loading...
Searching...
No Matches
ScriptLevelGameplayHandler.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/scripting/event_handlers/ScriptEventHandler.h"
12
13// auto generated forward declare list
14// clang-format off
18namespace ScriptModuleMinecraft { class IScriptWorldBeforeEvents; }
19namespace Scripting { class WeakLifetimeScope; }
20// clang-format on
21
22class ScriptLevelGameplayHandler : public ::EventHandlerDispatcher<::LevelGameplayHandler>,
23 public ::ScriptEventHandler<::ScriptModuleMinecraft::IScriptWorldBeforeEvents> {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 3
28 virtual ::GameplayHandlerResult<::CoordinatorResult> handleEvent(::LevelWeatherChangedEvent& event) /*override*/;
29
30 // vIndex: 4
31 virtual ::HandlerResult handleEvent(::ScriptingWorldInitializeEvent const& event) /*override*/;
32
33 // vIndex: 0
34 virtual ~ScriptLevelGameplayHandler() /*override*/ = default;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI bool _handleScriptingWorldInitializeEvent(
41 ::ScriptingWorldInitializeEvent const& eventData,
44 ) const;
45
46 MCAPI bool _handleWeatherChangedEvent(
47 ::LevelWeatherChangedEvent& weatherChangedEvent,
50 ) const;
51 // NOLINTEND
52
53public:
54 // destructor thunk
55 // NOLINTBEGIN
56
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::LevelWeatherChangedEvent& event);
63
64 MCAPI ::HandlerResult $handleEvent(::ScriptingWorldInitializeEvent const& event);
65 // NOLINTEND
66
67public:
68 // vftables
69 // NOLINTBEGIN
70 MCAPI static void** $vftable();
71 // NOLINTEND
72};
Definition EventHandlerDispatcher.h:6
Definition LevelGameplayHandler.h:13
Definition ScriptEventHandler.h:6
Definition ScriptLevelGameplayHandler.h:23
Definition WeakLifetimeScope.h:12
Definition LevelWeatherChangedEvent.h:5
Definition ScriptingWorldInitializeEvent.h:16
Definition TypedObjectHandle.h:8