LeviLamina
Loading...
Searching...
No Matches
ScriptServerNetworkEventHandler.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/ServerNetworkEventHandler.h"
11#include "mc/scripting/event_handlers/ScriptEventHandler.h"
12
13// auto generated forward declare list
14// clang-format off
15struct ChatEvent;
18namespace ScriptModuleMinecraft { class IScriptWorldBeforeEvents; }
19namespace ScriptModuleMinecraftNet { class IScriptNetworkBeforeEvents; }
20namespace Scripting { class WeakLifetimeScope; }
21// clang-format on
22
24: public ::EventHandlerDispatcher<::ServerNetworkEventHandler>,
25 public ::ScriptEventHandler<::ScriptModuleMinecraft::IScriptWorldBeforeEvents>,
26 public ::ScriptEventHandler<::ScriptModuleMinecraftNet::IScriptNetworkBeforeEvents> {
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 // vIndex: 4
31 virtual ::GameplayHandlerResult<::CoordinatorResult> handleEvent(::ChatEvent& chatEvent) /*override*/;
32
33 // vIndex: 3
34 virtual ::GameplayHandlerResult<::CoordinatorResult> handleEvent(::IncomingPacketEvent& packetEvent) /*override*/;
35
36 // vIndex: 2
37 virtual ::GameplayHandlerResult<::CoordinatorResult> handleEvent(::OutgoingPacketEvent& packetEvent) /*override*/;
38
39 // vIndex: 0
40 virtual ~ScriptServerNetworkEventHandler() /*override*/ = default;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI bool _handleChat(
47 ::ChatEvent& chatEvent,
50 ) const;
51
52 MCAPI bool _handleIncomingPacket(
53 ::IncomingPacketEvent& packetEvent,
56 ) const;
57
58 MCAPI bool _handleOutgoingPacket(
59 ::OutgoingPacketEvent& packetEvent,
62 ) const;
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::ChatEvent& chatEvent);
69
70 MCAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::IncomingPacketEvent& packetEvent);
71
72 MCAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::OutgoingPacketEvent& packetEvent);
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
Definition EventHandlerDispatcher.h:6
Definition ScriptEventHandler.h:6
Definition ScriptServerNetworkEventHandler.h:26
static MCAPI void ** $vftable()
Definition WeakLifetimeScope.h:12
Definition ChatEvent.h:14
Definition IncomingPacketEvent.h:14
Definition OutgoingPacketEvent.h:14
Definition TypedObjectHandle.h:8