LeviLamina
Loading...
Searching...
No Matches
PacketSecurityController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/SubClientId.h"
7#include "mc/network/IPacketSecurityController.h"
8#include "mc/network/MinecraftPacketIds.h"
9#include "mc/network/PacketGroupDefinition.h"
10#include "mc/network/PacketRateLimitFeature.h"
11#include "mc/network/PacketViolationResponse.h"
12#include "mc/platform/ErrorInfo.h"
13
14// auto generated forward declare list
15// clang-format off
18// clang-format on
19
20class PacketSecurityController : public ::IPacketSecurityController {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PacketViolationHandler>> mPacketViolationHandler;
25 ::ll::TypedStorage<8, 40, ::std::optional<::PacketRateLimitFeature>> mPacketRateLimitFeature;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 PacketSecurityController();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ~PacketSecurityController() /*override*/ = default;
36
37 virtual ::PacketViolationResponse checkForViolation(
38 ::MinecraftPacketIds packetId,
39 ::SubClientId subClientId,
40 ::nonstd::expected<void, ::Bedrock::ErrorInfo<::std::error_code>> const& result,
41 bool* outIsNewOrUpdatedViolation
42 ) /*override*/;
43
44 virtual uint getTelemetryData() /*override*/;
45
46 virtual ::Bedrock::ErrorInfo<::std::error_code> consumePacketError(::SubClientId subClientId) /*override*/;
47
48 virtual void reloadPacketLimitConfig(
49 ::std::shared_ptr<::PacketGroupDefinition::PacketGroupBuilder> packetGroupBuilder
50 ) /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
57 ::NetworkIdentifier const& netId,
58 ::std::shared_ptr<::PacketGroupDefinition::PacketGroupBuilder> packetGroupBuilder
59 );
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCNAPI void* $ctor(
66 ::NetworkIdentifier const& netId,
67 ::std::shared_ptr<::PacketGroupDefinition::PacketGroupBuilder> packetGroupBuilder
68 );
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCNAPI ::PacketViolationResponse $checkForViolation(
75 ::MinecraftPacketIds packetId,
76 ::SubClientId subClientId,
77 ::nonstd::expected<void, ::Bedrock::ErrorInfo<::std::error_code>> const& result,
78 bool* outIsNewOrUpdatedViolation
79 );
80
81 MCNAPI uint $getTelemetryData();
82
83 MCNAPI ::Bedrock::ErrorInfo<::std::error_code> $consumePacketError(::SubClientId subClientId);
84
85 MCNAPI void
86 $reloadPacketLimitConfig(::std::shared_ptr<::PacketGroupDefinition::PacketGroupBuilder> packetGroupBuilder);
87
88
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCNAPI static void** $vftable();
95 // NOLINTEND
96};
Definition IPacketSecurityController.h:22
Definition NetworkIdentifier.h:10
static MCAPI void ** $vftable()
MCAPI::PacketViolationResponse $checkForViolation(::MinecraftPacketIds packetId, ::SubClientId subClientId, ::nonstd::expected< void, ::Bedrock::ErrorInfo<::std::error_code > > const &result, bool *outIsNewOrUpdatedViolation)
MCAPI void $reloadPacketLimitConfig(::std::shared_ptr<::PacketGroupDefinition::PacketGroupBuilder > packetGroupBuilder)
MCAPI void * $ctor(::NetworkIdentifier const &netId, ::std::shared_ptr<::PacketGroupDefinition::PacketGroupBuilder > packetGroupBuilder)
MCAPI ::Bedrock::ErrorInfo<::std::error_code > $consumePacketError(::SubClientId subClientId)
MCAPI PacketSecurityController(::NetworkIdentifier const &netId, ::std::shared_ptr<::PacketGroupDefinition::PacketGroupBuilder > packetGroupBuilder)
MCAPI uint $getTelemetryData()
Definition PacketViolationHandler.h:11
Definition ErrorInfo.h:9