LeviLamina
Loading...
Searching...
No Matches
PacketLimitHandler.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
11// auto generated forward declare list
12// clang-format off
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PacketGroupDefinition>> mPacketGroupDefinition;
21 ::ll::TypedStorage<8, 24, ::std::optional<::std::error_code>> mLastResult;
22 ::ll::TypedStorage<1, 1, uchar> mViolationLevel;
23 // NOLINTEND
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ::PacketViolationResponse checkForViolation(
29 ::MinecraftPacketIds packetId,
30 ::nonstd::expected<void, ::Bedrock::ErrorInfo<::std::error_code>> const& result,
31 bool* outIsNewOrUpdatedViolation
32 ) /*override*/;
33
34 virtual uint getTelemetryData() /*override*/;
35
36 virtual ~PacketLimitHandler() /*override*/ = default;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCNAPI ::PacketViolationResponse
43 _checkLimitThreshold(::MinecraftPacketIds packetId, bool* outIsNewOrUpdatedViolation);
44
45 MCNAPI ::Bedrock::ErrorInfo<::std::error_code> consumeViolation();
46 // NOLINTEND
47
48public:
49 // virtual function thunks
50 // NOLINTBEGIN
51 MCNAPI ::PacketViolationResponse $checkForViolation(
52 ::MinecraftPacketIds packetId,
53 ::nonstd::expected<void, ::Bedrock::ErrorInfo<::std::error_code>> const& result,
54 bool* outIsNewOrUpdatedViolation
55 );
56
57 MCNAPI uint $getTelemetryData();
58
59
60 // NOLINTEND
61
62public:
63 // vftables
64 // NOLINTBEGIN
65 MCNAPI static void** $vftable();
66 // NOLINTEND
67};
Definition IPacketSecurityHandler.h:10
Definition PacketGroupDefinition.h:13
Definition PacketLimitHandler.h:16
MCAPI ::Bedrock::ErrorInfo<::std::error_code > consumeViolation()
MCAPI::PacketViolationResponse $checkForViolation(::MinecraftPacketIds packetId, ::nonstd::expected< void, ::Bedrock::ErrorInfo<::std::error_code > > const &result, bool *outIsNewOrUpdatedViolation)
static MCAPI void ** $vftable()
MCAPI uint $getTelemetryData()
MCAPI::PacketViolationResponse _checkLimitThreshold(::MinecraftPacketIds packetId, bool *outIsNewOrUpdatedViolation)
Definition ErrorInfo.h:9