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