LeviLamina
Loading...
Searching...
No Matches
PacketGroupDefinition.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/network/IPacketLimitAlgorithm.h"
5
6// auto generated inclusion list
7#include "mc/network/MinecraftPacketIds.h"
8
9// auto generated forward declare list
10// clang-format off
12// clang-format on
13
15public:
16 // PacketGroupDefinition inner types declare
17 // clang-format off
18 struct PacketGroupBuilder;
19 // clang-format on
20
21 // PacketGroupDefinition inner types define
22 struct PacketGroupBuilder {
23 public:
24 // PacketGroupBuilder inner types declare
25 // clang-format off
26 struct AlgorithmEntry;
27 // clang-format on
28
29 // PacketGroupBuilder inner types define
31 public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 24, ::std::vector<::MinecraftPacketIds>> packetIds;
35 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IPacketLimitAlgorithm>> algorithm;
36 // NOLINTEND
37 };
38
39 public:
40 // member variables
41 // NOLINTBEGIN
42 ::ll::TypedStorage<
43 8,
44 64,
45 ::std::unordered_map<::MinecraftPacketIds, ::std::vector<::std::unique_ptr<::IPacketLimitAlgorithm>>>>
46 mBasicPacketGroups;
47 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IPacketLimitAlgorithm>> mDefaultAlgorithm;
48 // NOLINTEND
49
50 public:
51 PacketGroupBuilder(PacketGroupBuilder&& other) noexcept {
52 mBasicPacketGroups = std::move(other.mBasicPacketGroups);
53 mDefaultAlgorithm = std::move(other.mDefaultAlgorithm);
54 }
55
56 public:
57 // member functions
58 // NOLINTBEGIN
59#ifdef LL_PLAT_S
60 MCAPI void addPacketAlgorithm(
61 ::std::vector<::MinecraftPacketIds> const& packetIds,
62 ::std::unique_ptr<::IPacketLimitAlgorithm> algorithm
63 );
64#endif
65
66 MCAPI ::std::unique_ptr<::PacketGroupDefinition> createGroupDefinition() const;
67
68#ifdef LL_PLAT_S
69 MCAPI void setDefaultAlgorithm(::std::unique_ptr<::IPacketLimitAlgorithm> algorithm);
70
71 MCAPI ~PacketGroupBuilder();
72#endif
73 // NOLINTEND
74
75 public:
76 // destructor thunk
77 // NOLINTBEGIN
78#ifdef LL_PLAT_S
79 MCFOLD void $dtor();
80#endif
81 // NOLINTEND
82 };
83
84public:
85 // member variables
86 // NOLINTBEGIN
87 ::ll::TypedStorage<8, 64, ::std::unordered_map<::MinecraftPacketIds, ::std::unique_ptr<::IPacketLimitAlgorithm>>>
88 mPacketGroups;
89 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IPacketLimitAlgorithm>> mDefaultAlgorithm;
90 // NOLINTEND
91
92public:
93 // member functions
94 // NOLINTBEGIN
96 // NOLINTEND
97
98public:
99 // destructor thunk
100 // NOLINTBEGIN
101 MCAPI void $dtor();
102 // NOLINTEND
103};
Definition IPacketLimitAlgorithm.h:8
Definition PacketGroupDefinition.h:14
Definition PacketGroupDefinition.h:22