LeviLamina
Loading...
Searching...
No Matches
EmotePacket.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/EmotePacketPayload.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
19class EmotePacket : public ::ll::PayloadPacket<::EmotePacketPayload> {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 4, ::SerializationMode> mSerializationMode;
24 // NOLINTEND
25
26#ifdef LL_PLAT_S
27public:
28 // prevent constructor by default
29 EmotePacket& operator=(EmotePacket const&);
30
31#else // LL_PLAT_C
32public:
33 // prevent constructor by default
34 EmotePacket& operator=(EmotePacket const&);
35 EmotePacket();
36
37#endif
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ::MinecraftPacketIds getId() const /*override*/;
42
43 virtual ::std::string_view getName() const /*override*/;
44
45 virtual ::SerializationMode getSerializationMode() const /*override*/;
46
47 virtual void setSerializationMode(::SerializationMode mode) /*override*/;
48
49 virtual void writeWithSerializationMode(
50 ::BinaryStream& stream,
51 ::cereal::ReflectionCtx const& reflectionCtx,
52 ::std::optional<::SerializationMode> overrideMode
53 ) const /*override*/;
54
55 virtual void write(::BinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx) const /*override*/;
56
57 virtual void write(::BinaryStream& stream) const /*override*/;
58
59 virtual ::Bedrock::Result<void>
60 read(::ReadOnlyBinaryStream& bitStream, ::cereal::ReflectionCtx const& reflectionCtx) /*override*/;
61
62 virtual bool disallowBatching() const /*override*/;
63
64 virtual bool isValid() const /*override*/;
65
66 virtual uint64 getMaxSize() const /*override*/;
67
68 virtual ::std::string toString() const /*override*/;
69
70 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
71
72 virtual ::Bedrock::Result<void>
73 _read(::ReadOnlyBinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx) /*override*/;
74
75 virtual ~EmotePacket() /*override*/;
76 // NOLINTEND
77
78public:
79 // member functions
80 // NOLINTBEGIN
81#ifdef LL_PLAT_S
82 MCAPI EmotePacket();
83#endif
84
85 MCAPI EmotePacket(::EmotePacket const&);
86
87#ifdef LL_PLAT_C
88 MCAPI explicit EmotePacket(::EmotePacketPayload payload);
89#endif
90 // NOLINTEND
91
92public:
93 // constructor thunks
94 // NOLINTBEGIN
95#ifdef LL_PLAT_S
96 MCAPI void* $ctor();
97#endif
98
99 MCAPI void* $ctor(::EmotePacket const&);
100
101#ifdef LL_PLAT_C
102 MCAPI void* $ctor(::EmotePacketPayload payload);
103#endif
104 // NOLINTEND
105
106public:
107 // destructor thunk
108 // NOLINTBEGIN
109 MCAPI void $dtor();
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115 MCAPI ::MinecraftPacketIds $getId() const;
116
117 MCAPI ::std::string_view $getName() const;
118
119 MCFOLD ::SerializationMode $getSerializationMode() const;
120
121 MCAPI void $setSerializationMode(::SerializationMode mode);
122
123 MCAPI void $writeWithSerializationMode(
124 ::BinaryStream& stream,
125 ::cereal::ReflectionCtx const& reflectionCtx,
126 ::std::optional<::SerializationMode> overrideMode
127 ) const;
128
129 MCFOLD void $write(::BinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx) const;
130
131 MCAPI void $write(::BinaryStream& stream) const;
132
133 MCAPI ::Bedrock::Result<void>
134 $read(::ReadOnlyBinaryStream& bitStream, ::cereal::ReflectionCtx const& reflectionCtx);
135
136 MCFOLD bool $disallowBatching() const;
137
138 MCFOLD bool $isValid() const;
139
140 MCFOLD uint64 $getMaxSize() const;
141
142 MCAPI ::std::string $toString() const;
143
144 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
145
146 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx);
147
148
149 // NOLINTEND
150
151public:
152 // vftables
153 // NOLINTBEGIN
154 MCNAPI static void** $vftable();
155 // NOLINTEND
156};
Definition BinaryStream.h:11
static MCAPI void ** $vftable()
Definition ReadOnlyBinaryStream.h:8
Definition Packet.h:200
Definition ReflectionCtx.h:11