LeviLamina
Loading...
Searching...
No Matches
ClientboundMapItemDataPacket.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/deps/core/utility/buffer_span.h"
8#include "mc/network/MinecraftPacketIds.h"
9#include "mc/network/packet/Packet.h"
10#include "mc/platform/Result.h"
11#include "mc/world/level/BlockPos.h"
12#include "mc/world/level/saveddata/maps/MapItemTrackedActor.h"
13
14// auto generated forward declare list
15// clang-format off
16class BinaryStream;
17class Dimension;
18class Level;
19class MapDecoration;
22struct ActorUniqueID;
23// clang-format on
24
26public:
27 // ClientboundMapItemDataPacket inner types define
28 enum class Type : int {
29 // bitfield representation
30 Invalid = 0,
31 TextureUpdate = 1 << 1,
32 DecorationUpdate = 1 << 2,
33 Creation = 1 << 3,
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<8, 24, ::std::vector<::ActorUniqueID>> mMapIds;
40 ::ll::TypedStorage<1, 1, char> mScale;
41 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::MapDecoration>>> mDecorations;
42 ::ll::TypedStorage<8, 24, ::std::vector<::MapItemTrackedActor::UniqueId>> mUniqueIds;
43 ::ll::TypedStorage<4, 4, int> mStartX;
44 ::ll::TypedStorage<4, 4, int> mStartY;
45 ::ll::TypedStorage<4, 12, ::BlockPos> mMapOrigin;
46 ::ll::TypedStorage<1, 1, uchar> mDimension;
47 ::ll::TypedStorage<4, 4, int> mWidth;
48 ::ll::TypedStorage<4, 4, int> mHeight;
49 ::ll::TypedStorage<4, 4, ::ClientboundMapItemDataPacket::Type> mType;
50 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mMapPixels;
51 ::ll::TypedStorage<1, 1, bool> mLocked;
52 // NOLINTEND
53
54public:
55 // virtual functions
56 // NOLINTBEGIN
57 // vIndex: 4
58 virtual void write(::BinaryStream& stream) const /*override*/;
59
60 // vIndex: 1
61 virtual ::MinecraftPacketIds getId() const /*override*/;
62
63 // vIndex: 2
64 virtual ::std::string getName() const /*override*/;
65
66 // vIndex: 8
67 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
68
69 // vIndex: 0
70 virtual ~ClientboundMapItemDataPacket() /*override*/;
71 // NOLINTEND
72
73public:
74 // member functions
75 // NOLINTBEGIN
77
78 MCAPI ClientboundMapItemDataPacket(::gsl::not_null<::MapItemSavedData*> newMapItem, ::Level& level);
79
81 ::ActorUniqueID mapId,
82 schar scale,
83 ::std::vector<::std::pair<::MapItemTrackedActor::UniqueId, ::std::shared_ptr<::MapDecoration>>> const&
84 decorations,
85 ::buffer_span<uint> mapColors,
86 int startX,
87 int startY,
88 int width,
89 int height,
90 ::DimensionType dimension,
91 bool isLocked,
92 ::BlockPos const& mapOrigin
93 );
94
95 MCAPI bool isOfType(::ClientboundMapItemDataPacket::Type type) const;
96 // NOLINTEND
97
98public:
99 // constructor thunks
100 // NOLINTBEGIN
101 MCAPI void* $ctor();
102
103 MCAPI void* $ctor(::gsl::not_null<::MapItemSavedData*> newMapItem, ::Level& level);
104
105 MCAPI void* $ctor(
106 ::ActorUniqueID mapId,
107 schar scale,
108 ::std::vector<::std::pair<::MapItemTrackedActor::UniqueId, ::std::shared_ptr<::MapDecoration>>> const&
109 decorations,
110 ::buffer_span<uint> mapColors,
111 int startX,
112 int startY,
113 int width,
114 int height,
115 ::DimensionType dimension,
116 bool isLocked,
117 ::BlockPos const& mapOrigin
118 );
119 // NOLINTEND
120
121public:
122 // destructor thunk
123 // NOLINTBEGIN
124 MCAPI void $dtor();
125 // NOLINTEND
126
127public:
128 // virtual function thunks
129 // NOLINTBEGIN
130 MCAPI void $write(::BinaryStream& stream) const;
131
132 MCAPI ::MinecraftPacketIds $getId() const;
133
134 MCAPI ::std::string $getName() const;
135
136 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
137 // NOLINTEND
138
139public:
140 // vftables
141 // NOLINTBEGIN
142 MCNAPI static void** $vftable();
143 // NOLINTEND
144};
Definition AutomaticID.h:6
Definition BinaryStream.h:10
Definition BlockPos.h:18
Definition ClientboundMapItemDataPacket.h:25
static MCAPI void ** $vftable()
Definition Dimension.h:83
Definition Level.h:238
Definition MapDecoration.h:8
Definition MapItemSavedData.h:31
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition buffer_span.h:6
Definition ActorUniqueID.h:5
Definition MapItemTrackedActor.h:26