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