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/scripting/event_handlers/ScriptEventHandler.h"
11
12// auto generated forward declare list
13// 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 // destructor thunk
67 // NOLINTBEGIN
68
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::ChatEvent& chatEvent);
75
76 MCAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::IncomingPacketEvent& packetEvent);
77
78 MCAPI ::GameplayHandlerResult<::CoordinatorResult> $handleEvent(::OutgoingPacketEvent& packetEvent);
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCAPI static void** $vftable();
85 // NOLINTEND
86};
Definition EventHandlerDispatcher.h:6
Definition ScriptEventHandler.h:6
Definition ScriptServerNetworkEventHandler.h:26
Definition WeakLifetimeScope.h:12
Definition ServerNetworkEventHandler.h:11
Definition ChatEvent.h:14
Definition IncomingPacketEvent.h:14
Definition OutgoingPacketEvent.h:14
Definition TypedObjectHandle.h:8