LeviLamina
Loading...
Searching...
No Matches
ClassroomModeNetworkHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/minecraft/threading/EnableQueueForMainThread.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/network/IncomingPacketFilterResult.h"
9#include "mc/network/MinecraftPacketIds.h"
10#include "mc/network/NetEventCallback.h"
11#include "mc/network/OutgoingPacketFilterResult.h"
12
13// auto generated forward declare list
14// clang-format off
15class Packet;
17namespace Automation { class AutomationClient; }
18// clang-format on
19
20class ClassroomModeNetworkHandler : public ::NetEventCallback, public ::Bedrock::Threading::EnableQueueForMainThread {
21public:
22 // member variables
23 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 ClassroomModeNetworkHandler& operator=(ClassroomModeNetworkHandler const&);
34 ClassroomModeNetworkHandler(ClassroomModeNetworkHandler const&);
35 ClassroomModeNetworkHandler();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ~ClassroomModeNetworkHandler() /*override*/;
41
42 virtual ::IncomingPacketFilterResult
43 allowIncomingPacketId(::NetworkIdentifierWithSubId const&, ::MinecraftPacketIds, uint64) /*override*/;
44
45 virtual ::OutgoingPacketFilterResult
46 allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId> const&, ::Packet const&) /*override*/;
47
48 virtual void onWebsocketRequest(
49 ::std::string const& serverAddress,
50 ::std::string const& payload,
51 ::std::function<void()> errorCallback
52 ) /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCNAPI explicit ClassroomModeNetworkHandler(bool isDedicatedServer);
59
60 MCNAPI void _connect(::std::string const& address);
61
62#ifdef LL_PLAT_S
63 MCNAPI void setAutomationClient(::Bedrock::NonOwnerPointer<::Automation::AutomationClient> client);
64#endif
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCNAPI void* $ctor(bool isDedicatedServer);
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCNAPI void $dtor();
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCNAPI ::IncomingPacketFilterResult
83 $allowIncomingPacketId(::NetworkIdentifierWithSubId const&, ::MinecraftPacketIds, uint64);
84
85 MCNAPI ::OutgoingPacketFilterResult
86 $allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId> const&, ::Packet const&);
87
89 ::std::string const& serverAddress,
90 ::std::string const& payload,
91 ::std::function<void()> errorCallback
92 );
93
94
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
101
102 MCNAPI static void** $vftableForNetEventCallback();
103 // NOLINTEND
104};
Definition AutomationClient.h:27
Definition NonOwnerPointer.h:9
Definition EnableQueueForMainThread.h:11
static MCAPI void ** $vftableForNetEventCallback()
MCAPI::OutgoingPacketFilterResult $allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId > const &, ::Packet const &)
static MCAPI void ** $vftableForEnableQueueForMainThread()
MCAPI void $onWebsocketRequest(::std::string const &serverAddress, ::std::string const &payload, ::std::function< void()> errorCallback)
MCAPI void _connect(::std::string const &address)
MCAPI void * $ctor(bool isDedicatedServer)
MCAPI ClassroomModeNetworkHandler(bool isDedicatedServer)
MCAPI::IncomingPacketFilterResult $allowIncomingPacketId(::NetworkIdentifierWithSubId const &, ::MinecraftPacketIds, uint64)
Definition NetEventCallback.h:260
Definition Packet.h:31
Definition NetworkIdentifierWithSubId.h:10
Definition Alias.h:14