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 allowIncomingPacketId(
44 ::MinecraftPacketIds packetId,
45 uint64 packetSize
46 ) /*override*/;
47
48 virtual ::OutgoingPacketFilterResult
49 allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId> const& ids, ::Packet const& packet) /*override*/;
50
51 virtual void onWebsocketRequest(
52 ::std::string const& serverAddress,
53 ::std::string const& payload,
54 ::std::function<void()> errorCallback
55 ) /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCNAPI explicit ClassroomModeNetworkHandler(bool isDedicatedServer);
62
63 MCNAPI void _connect(::std::string const& address);
64
65 MCNAPI_S void setAutomationClient(::Bedrock::NonOwnerPointer<::Automation::AutomationClient> client);
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCNAPI void* $ctor(bool isDedicatedServer);
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCNAPI void $dtor();
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCNAPI ::IncomingPacketFilterResult
84 $allowIncomingPacketId(::NetworkIdentifierWithSubId const& id, ::MinecraftPacketIds packetId, uint64 packetSize);
85
86 MCNAPI ::OutgoingPacketFilterResult
87 $allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId> const& ids, ::Packet const& packet);
88
90 ::std::string const& serverAddress,
91 ::std::string const& payload,
92 ::std::function<void()> errorCallback
93 );
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
102
103 MCNAPI static void** $vftableForNetEventCallback();
104 // NOLINTEND
105};
Definition AutomationClient.h:26
Definition NonOwnerPointer.h:9
Definition EnableQueueForMainThread.h:17
static MCAPI void ** $vftableForNetEventCallback()
MCAPI::OutgoingPacketFilterResult $allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId > const &ids, ::Packet const &packet)
static MCAPI void ** $vftableForEnableQueueForMainThread()
MCAPI void $onWebsocketRequest(::std::string const &serverAddress, ::std::string const &payload, ::std::function< void()> errorCallback)
MCAPI::IncomingPacketFilterResult $allowIncomingPacketId(::NetworkIdentifierWithSubId const &id, ::MinecraftPacketIds packetId, uint64 packetSize)
MCAPI void _connect(::std::string const &address)
MCAPI void * $ctor(bool isDedicatedServer)
MCAPI ClassroomModeNetworkHandler(bool isDedicatedServer)
Definition NetEventCallback.h:245
Definition Packet.h:28
Definition NetworkIdentifierWithSubId.h:10
Definition Alias.h:14