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/gameplayhandlers/LevelGameplayHandler.h"
12#include "mc/scripting/event_handlers/ScriptEventHandler.h"
13
14// auto generated forward declare list
15// 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 virtual ::GameplayHandlerResult<::CoordinatorResult> handleEvent(::LevelWeatherChangedEvent& event) /*override*/;
28
29 virtual ::HandlerResult handleEvent(::ScriptingWorldInitializeEvent const& event) /*override*/;
30
31 virtual ~ScriptLevelGameplayHandler() /*override*/ = default;
32 // NOLINTEND
33
34public:
35 // member functions
36 // NOLINTBEGIN
38 ::ScriptingWorldInitializeEvent const& eventData,
41 ) const;
42
44 ::LevelWeatherChangedEvent& weatherChangedEvent,
47 ) const;
48 // NOLINTEND
49
50public:
51 // virtual function thunks
52 // NOLINTBEGIN
53 MCNAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::LevelWeatherChangedEvent& event);
54
55 MCNAPI ::HandlerResult $handleEvent(::ScriptingWorldInitializeEvent const& event);
56
57
58 // NOLINTEND
59
60public:
61 // vftables
62 // NOLINTBEGIN
63 MCNAPI static void** $vftable();
64 // NOLINTEND
65};
Definition EventHandlerDispatcher.h:6
Definition ScriptEventHandler.h:6
Definition ScriptLevelGameplayHandler.h:23
MCAPI bool _handleWeatherChangedEvent(::LevelWeatherChangedEvent &weatherChangedEvent, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle) const
static MCAPI void ** $vftable()
MCAPI ::GameplayHandlerResult<::CoordinatorResult > $handleEvent(::LevelWeatherChangedEvent &event)
MCAPI bool _handleScriptingWorldInitializeEvent(::ScriptingWorldInitializeEvent const &eventData, ::Scripting::WeakLifetimeScope const &scope, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::IScriptWorldBeforeEvents > scriptLevelEventsHandle) const
MCAPI::HandlerResult $handleEvent(::ScriptingWorldInitializeEvent const &event)
Definition IScriptWorldBeforeEvents.h:40
Definition WeakLifetimeScope.h:7
Definition LevelWeatherChangedEvent.h:5
Definition ScriptingWorldInitializeEvent.h:16
Definition TypedObjectHandle.h:8