LeviLamina
Loading...
Searching...
No Matches
AgentActionEventPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/MinecraftPacketIds.h"
7#include "mc/network/Packet.h"
8#include "mc/network/packet/AgentActionEventPacketPayload.h"
9#include "mc/network/packet/cerealize/core/SerializationMode.h"
10#include "mc/platform/Result.h"
11
12// auto generated forward declare list
13// clang-format off
14class BinaryStream;
16namespace cereal { struct ReflectionCtx; }
17// clang-format on
18
19MC_NETWORK_PACKET_DECALARE(AgentActionEventPacket) {
20
21public:
22 // prevent constructor by default
23 AgentActionEventPacket();
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 // vIndex: 1
29 virtual ::MinecraftPacketIds getId() const /*override*/;
30
31 // vIndex: 2
32 virtual ::std::string getName() const /*override*/;
33
34 // vIndex: 12
35 virtual ::SerializationMode getSerializationMode() const /*override*/;
36
37 // vIndex: 13
38 virtual void setSerializationMode(::SerializationMode mode) /*override*/;
39
40 // vIndex: 5
41 virtual void writeWithSerializationMode(
42 ::BinaryStream & stream,
43 ::cereal::ReflectionCtx const& reflectionCtx,
44 ::std::optional<::SerializationMode> overrideMode
45 ) const /*override*/;
46
47 // vIndex: 7
48 virtual void write(::BinaryStream & bitStream, ::cereal::ReflectionCtx const& reflectionCtx) const /*override*/;
49
50 // vIndex: 6
51 virtual void write(::BinaryStream & stream) const /*override*/;
52
53 // vIndex: 9
54 virtual ::Bedrock::Result<void> read(
55 ::ReadOnlyBinaryStream & bitStream,
56 ::cereal::ReflectionCtx const& reflectionCtx
57 ) /*override*/;
58
59 // vIndex: 10
60 virtual bool disallowBatching() const /*override*/;
61
62 // vIndex: 11
63 virtual bool isValid() const /*override*/;
64
65 // vIndex: 3
66 virtual uint64 getMaxSize() const /*override*/;
67
68 // vIndex: 14
69 virtual ::std::string toString() const /*override*/;
70
71 // vIndex: 15
72 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream & stream) /*override*/;
73
74 // vIndex: 16
75 virtual ::Bedrock::Result<void> _read(
76 ::ReadOnlyBinaryStream & bitStream,
77 ::cereal::ReflectionCtx const& reflectionCtx
78 ) /*override*/;
79
80 // vIndex: 0
81 virtual ~AgentActionEventPacket() /*override*/;
82 // NOLINTEND
83
84public:
85 // member functions
86 // NOLINTBEGIN
87 MCAPI explicit AgentActionEventPacket(::AgentActionEventPacketPayload payload);
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93 MCAPI void* $ctor(::AgentActionEventPacketPayload payload);
94 // NOLINTEND
95
96public:
97 // destructor thunk
98 // NOLINTBEGIN
99 MCAPI void $dtor();
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCAPI ::MinecraftPacketIds $getId() const;
106
107 MCAPI ::std::string $getName() const;
108
109 MCFOLD ::SerializationMode $getSerializationMode() const;
110
111 MCFOLD void $setSerializationMode(::SerializationMode mode);
112
113 MCAPI void $writeWithSerializationMode(
114 ::BinaryStream & stream,
115 ::cereal::ReflectionCtx const& reflectionCtx,
116 ::std::optional<::SerializationMode> overrideMode
117 ) const;
118
119 MCFOLD void $write(::BinaryStream & bitStream, ::cereal::ReflectionCtx const& reflectionCtx) const;
120
121 MCAPI void $write(::BinaryStream & stream) const;
122
123 MCAPI ::Bedrock::Result<void> $read(
124 ::ReadOnlyBinaryStream & bitStream,
125 ::cereal::ReflectionCtx const& reflectionCtx
126 );
127
128 MCFOLD bool $disallowBatching() const;
129
130 MCFOLD bool $isValid() const;
131
132 MCFOLD uint64 $getMaxSize() const;
133
134 MCAPI ::std::string $toString() const;
135
136 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream & stream);
137
138 MCAPI ::Bedrock::Result<void> $_read(
139 ::ReadOnlyBinaryStream & bitStream,
140 ::cereal::ReflectionCtx const& reflectionCtx
141 );
142 // NOLINTEND
143
144public:
145 // vftables
146 // NOLINTBEGIN
147 MCNAPI static void** $vftable();
148 // NOLINTEND
149}
150MC_NETWORK_PACKET_DECALARE_END
Definition BinaryStream.h:10
Definition ReadOnlyBinaryStream.h:8
STL namespace.
Definition AgentActionEventPacketPayload.h:9