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