LeviLamina
Loading...
Searching...
No Matches
PacketViolationHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/IPacketSecurityHandler.h"
7#include "mc/network/MinecraftPacketIds.h"
8#include "mc/network/PacketViolationResponse.h"
9#include "mc/platform/ErrorInfo.h"
10
11class PacketViolationHandler : public ::IPacketSecurityHandler {
12public:
13 // member variables
14 // NOLINTBEGIN
18 // NOLINTEND
19
20public:
21 // prevent constructor by default
22 PacketViolationHandler& operator=(PacketViolationHandler const&);
23 PacketViolationHandler(PacketViolationHandler const&);
24 PacketViolationHandler();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::PacketViolationResponse checkForViolation(
30 ::MinecraftPacketIds packetId,
31 ::nonstd::expected<void, ::Bedrock::ErrorInfo<::std::error_code>> const& result,
32 bool* outIsNewOrUpdatedViolation
33 ) /*override*/;
34
35 virtual uint getTelemetryData() /*override*/;
36
37 virtual ~PacketViolationHandler() /*override*/ = default;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCNAPI ::PacketViolationResponse
44 _handleViolation(::MinecraftPacketIds packetId, ::std::error_code const& result, bool* outIsNewOrUpdatedViolation);
45 // NOLINTEND
46
47public:
48 // virtual function thunks
49 // NOLINTBEGIN
50 MCNAPI ::PacketViolationResponse $checkForViolation(
51 ::MinecraftPacketIds packetId,
52 ::nonstd::expected<void, ::Bedrock::ErrorInfo<::std::error_code>> const& result,
53 bool* outIsNewOrUpdatedViolation
54 );
55
56 MCNAPI uint $getTelemetryData();
57
58
59 // NOLINTEND
60
61public:
62 // vftables
63 // NOLINTBEGIN
64 MCNAPI static void** $vftable();
65 // NOLINTEND
66};
Definition IPacketSecurityHandler.h:10
MCAPI::PacketViolationResponse _handleViolation(::MinecraftPacketIds packetId, ::std::error_code const &result, bool *outIsNewOrUpdatedViolation)
static MCAPI void ** $vftable()
MCAPI uint $getTelemetryData()
MCAPI::PacketViolationResponse $checkForViolation(::MinecraftPacketIds packetId, ::nonstd::expected< void, ::Bedrock::ErrorInfo<::std::error_code > > const &result, bool *outIsNewOrUpdatedViolation)
Definition ErrorInfo.h:9
Definition Alias.h:14