LeviLamina
Loading...
Searching...
No Matches
SubChunkPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/AutomaticID.h"
7#include "mc/network/MinecraftPacketIds.h"
8#include "mc/network/packet/Packet.h"
9#include "mc/platform/Result.h"
10#include "mc/world/level/SubChunkPos.h"
11
12// auto generated forward declare list
13// clang-format off
14class BinaryStream;
15class Dimension;
17// clang-format on
18
19class SubChunkPacket : public ::Packet {
20public:
21 // SubChunkPacket inner types declare
22 // clang-format off
23 struct HeightmapData;
24 struct SubChunkPacketData;
25 struct SubChunkPosOffset;
26 // clang-format on
27
28 // SubChunkPacket inner types define
29 enum class HeightMapDataType : uchar {
30 NoData = 0,
31 HasData = 1,
32 AllTooHigh = 2,
33 AllTooLow = 3,
34 };
35
36 enum class SubChunkRequestResult : uchar {
37 Undefined = 0,
38 Success = 1,
39 LevelChunkDoesntExist = 2,
40 WrongDimension = 3,
41 PlayerDoesntExist = 4,
42 IndexOutOfBounds = 5,
43 SuccessAllAir = 6,
44 };
45
47 public:
48 // member variables
49 // NOLINTBEGIN
50 ::ll::TypedStorage<1, 1, ::SubChunkPacket::HeightMapDataType> mHeightMapType;
51 ::ll::TypedStorage<1, 256, ::std::array<::std::array<schar, 16>, 16>> mSubchunkHeightMap;
52 // NOLINTEND
53
54 public:
55 // static variables
56 // NOLINTBEGIN
57 MCAPI static schar const& HEIGHT_COLUMN_ABOVE_SUBCHUNK();
58
59 MCAPI static schar const& HEIGHT_COLUMN_BELOW_SUBCHUNK();
60 // NOLINTEND
61 };
62
64 public:
65 // member variables
66 // NOLINTBEGIN
67 ::ll::TypedStorage<1, 1, char> mX;
68 ::ll::TypedStorage<1, 1, char> mY;
69 ::ll::TypedStorage<1, 1, char> mZ;
70 // NOLINTEND
71 };
72
74 public:
75 // member variables
76 // NOLINTBEGIN
77 ::ll::TypedStorage<1, 3, ::SubChunkPacket::SubChunkPosOffset const> mSubChunkPosOffset;
78 ::ll::TypedStorage<8, 32, ::std::string> mSerializedSubChunk;
79 ::ll::TypedStorage<1, 1, ::SubChunkPacket::SubChunkRequestResult> mResult;
80 ::ll::TypedStorage<1, 257, ::SubChunkPacket::HeightmapData> mHeightMapData;
81 ::ll::TypedStorage<8, 8, uint64> mBlobId;
82 // NOLINTEND
83
84 public:
85 // prevent constructor by default
87
88 public:
89 // member functions
90 // NOLINTBEGIN
93 ::SubChunkPacket::SubChunkRequestResult requestResult
94 );
95
96 MCAPI ~SubChunkPacketData();
97 // NOLINTEND
98
99 public:
100 // constructor thunks
101 // NOLINTBEGIN
102 MCAPI void*
103 $ctor(::SubChunkPacket::SubChunkPosOffset const& pos, ::SubChunkPacket::SubChunkRequestResult requestResult);
104 // NOLINTEND
105
106 public:
107 // destructor thunk
108 // NOLINTBEGIN
109 MCFOLD void $dtor();
110 // NOLINTEND
111 };
112
113public:
114 // member variables
115 // NOLINTBEGIN
116 ::ll::TypedStorage<1, 1, bool> mCacheEnabled;
117 ::ll::TypedStorage<4, 4, ::DimensionType> mDimensionType;
118 ::ll::TypedStorage<8, 24, ::std::vector<::SubChunkPacket::SubChunkPacketData>> mSubChunkData;
119 ::ll::TypedStorage<4, 12, ::SubChunkPos> mCenterPos;
120 // NOLINTEND
121
122public:
123 // prevent constructor by default
124 SubChunkPacket& operator=(SubChunkPacket const&);
126
127public:
128 // virtual functions
129 // NOLINTBEGIN
130 // vIndex: 0
131 virtual ~SubChunkPacket() /*override*/;
132
133 // vIndex: 1
134 virtual ::MinecraftPacketIds getId() const /*override*/;
135
136 // vIndex: 2
137 virtual ::std::string getName() const /*override*/;
138
139 // vIndex: 4
140 virtual void write(::BinaryStream& stream) const /*override*/;
141
142 // vIndex: 8
143 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
144 // NOLINTEND
145
146public:
147 // member functions
148 // NOLINTBEGIN
149 MCAPI SubChunkPacket(::SubChunkPacket const&);
150 // NOLINTEND
151
152public:
153 // constructor thunks
154 // NOLINTBEGIN
155 MCAPI void* $ctor(::SubChunkPacket const&);
156 // NOLINTEND
157
158public:
159 // destructor thunk
160 // NOLINTBEGIN
161 MCAPI void $dtor();
162 // NOLINTEND
163
164public:
165 // virtual function thunks
166 // NOLINTBEGIN
167 MCAPI ::MinecraftPacketIds $getId() const;
168
169 MCAPI ::std::string $getName() const;
170
171 MCAPI void $write(::BinaryStream& stream) const;
172
173 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
174 // NOLINTEND
175
176public:
177 // vftables
178 // NOLINTBEGIN
179 MCNAPI static void** $vftable();
180 // NOLINTEND
181};
Definition BinaryStream.h:10
Definition Dimension.h:83
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition SubChunkPacket.h:19
static MCAPI void ** $vftable()
STL namespace.
Definition SubChunkPacket.h:46
Definition SubChunkPacket.h:73
Definition SubChunkPacket.h:63