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
21public:
22 // member variables
23 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 0
41 virtual ~ClassroomModeNetworkHandler() /*override*/;
42
43 // vIndex: 7
44 virtual ::IncomingPacketFilterResult allowIncomingPacketId(
46 ::MinecraftPacketIds packetId,
47 uint64 packetSize
48 ) /*override*/;
49
50 // vIndex: 8
51 virtual ::OutgoingPacketFilterResult
52 allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId> const& ids, ::Packet const& packet) /*override*/;
53
54 // vIndex: 9
55 virtual void onWebsocketRequest(
56 ::std::string const& serverAddress,
57 ::std::string const& payload,
58 ::std::function<void()> errorCallback
59 ) /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI explicit ClassroomModeNetworkHandler(bool isDedicatedServer);
66
67 MCAPI void _connect(::std::string const& address);
68
69 MCAPI void setAutomationClient(::Bedrock::NonOwnerPointer<::Automation::AutomationClient> client);
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor(bool isDedicatedServer);
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81 MCAPI void $dtor();
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87 MCFOLD ::IncomingPacketFilterResult
88 $allowIncomingPacketId(::NetworkIdentifierWithSubId const& id, ::MinecraftPacketIds packetId, uint64 packetSize);
89
90 MCFOLD ::OutgoingPacketFilterResult
91 $allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId> const& ids, ::Packet const& packet);
92
93 MCAPI void $onWebsocketRequest(
94 ::std::string const& serverAddress,
95 ::std::string const& payload,
96 ::std::function<void()> errorCallback
97 );
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCAPI static void** $vftableForEnableQueueForMainThread();
104
105 MCAPI static void** $vftableForNetEventCallback();
106 // NOLINTEND
107};
Definition NonOwnerPointer.h:9
Definition EnableQueueForMainThread.h:10
Definition ClassroomModeNetworkHandler.h:20
Definition NetEventCallback.h:239
Definition Packet.h:26
Definition NetworkIdentifierWithSubId.h:14
Definition Alias.h:14