LeviLamina
Loading...
Searching...
No Matches
StartGamePacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec2.h"
7#include "mc/deps/core/math/Vec3.h"
8#include "mc/deps/core/resource/ContentIdentity.h"
9#include "mc/deps/nbt/CompoundTag.h"
10#include "mc/events/event_data/ServerTelemetryData.h"
11#include "mc/legacy/ActorRuntimeID.h"
12#include "mc/legacy/ActorUniqueID.h"
13#include "mc/network/MinecraftPacketIds.h"
14#include "mc/network/NetworkPermissions.h"
15#include "mc/network/Packet.h"
16#include "mc/platform/Result.h"
17#include "mc/platform/UUID.h"
18#include "mc/server/config/server_configuration/ServerConfigurationJoinInfo.h"
19#include "mc/world/actor/player/SyncedPlayerMovementSettings.h"
20#include "mc/world/level/GameType.h"
21#include "mc/world/level/LevelSettings.h"
22
23// auto generated forward declare list
24// clang-format off
25class BinaryStream;
29// clang-format on
30
31class StartGamePacket : public ::Packet {
32public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<8, 1336, ::LevelSettings> mSettings;
36 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityId;
37 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mRuntimeId;
38 ::ll::TypedStorage<4, 4, ::GameType> mEntityGameType;
39 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
40 ::ll::TypedStorage<4, 8, ::Vec2> mRot;
41 ::ll::TypedStorage<8, 32, ::std::string> mLevelId;
42 ::ll::TypedStorage<8, 32, ::std::string> mLevelName;
43 ::ll::TypedStorage<8, 24, ::ContentIdentity> mTemplateContentIdentity;
44 ::ll::TypedStorage<8, 16, ::mce::UUID> mWorldTemplateId;
45 ::ll::TypedStorage<1, 1, bool> mIsTrial;
46 ::ll::TypedStorage<4, 8, ::SyncedPlayerMovementSettings> mMovementSettings;
47 ::ll::TypedStorage<8, 8, uint64> mLevelCurrentTime;
48 ::ll::TypedStorage<4, 4, int> mEnchantmentSeed;
49 ::ll::TypedStorage<8, 32, ::std::string> mMultiplayerCorrelationId;
50 ::ll::TypedStorage<1, 1, bool> mEnableItemStackNetManager;
51 ::ll::TypedStorage<8, 32, ::std::string> mServerVersion;
52 ::ll::TypedStorage<8, 24, ::CompoundTag> mPlayerPropertyData;
53 ::ll::TypedStorage<8, 8, uint64> mServerBlockTypeRegistryChecksum;
54 ::ll::TypedStorage<1, 1, bool> mServerEnabledClientSideGeneration;
55 ::ll::TypedStorage<1, 1, bool> mBlockNetworkIdsAreHashes;
56 ::ll::TypedStorage<1, 1, ::NetworkPermissions> mNetworkPermissions;
57 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::std::string, ::CompoundTag>>> mBlockProperties;
58 ::ll::TypedStorage<8, 368, ::std::optional<::ServerConfiguration::ServerConfigurationJoinInfo>>
59 mServerConfigurationJoinInfo;
60 ::ll::TypedStorage<8, 128, ::Social::Events::ServerTelemetryData> mServerTelemetryData;
61 // NOLINTEND
62
63public:
64 // virtual functions
65 // NOLINTBEGIN
66 virtual ::MinecraftPacketIds getId() const /*override*/;
67
68 virtual ::std::string_view getName() const /*override*/;
69
70 virtual void write(::BinaryStream& stream) const /*override*/;
71
72 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
73
74 virtual ~StartGamePacket() /*override*/;
75 // NOLINTEND
76
77public:
78 // member functions
79 // NOLINTBEGIN
80 MCAPI StartGamePacket();
81
82 MCAPI StartGamePacket(
83 ::LevelSettings const& settings,
84 ::ActorUniqueID entityId,
85 ::ActorRuntimeID runtimeId,
86 ::GameType entityGameType,
87 bool enableItemStackNetManager,
88 ::Vec3 const& pos,
89 ::Vec2 const& rot,
90 ::std::string const& levelId,
91 ::std::string const& levelName,
92 ::ContentIdentity const& premiumTemplateContentIdentity,
93 ::std::string const& multiplayerCorrelationId,
94 ::BlockDefinitionGroup const& blockDefinitionGroup,
95 bool isTrial,
96 ::CompoundTag playerPropertyData,
97 ::PlayerMovementSettings const& movementSettings,
98 ::std::string const& serverVersion,
99 ::mce::UUID const& worldTemplateId,
100 ::std::optional<::ServerConfiguration::ServerConfigurationJoinInfo> const& serverJoinInfo,
101 ::Social::Events::ServerTelemetryData const& serverTelemetryData,
102 uint64 levelCurrentTime,
103 int enchantmentSeed,
104 uint64 blockTypeRegistryChecksum
105 );
106
107 MCAPI void _prepareBlockPropertiesTags(::BlockDefinitionGroup const& blockDefinitionGroup);
108 // NOLINTEND
109
110public:
111 // constructor thunks
112 // NOLINTBEGIN
113 MCAPI void* $ctor();
114
115 MCAPI void* $ctor(
116 ::LevelSettings const& settings,
117 ::ActorUniqueID entityId,
118 ::ActorRuntimeID runtimeId,
119 ::GameType entityGameType,
120 bool enableItemStackNetManager,
121 ::Vec3 const& pos,
122 ::Vec2 const& rot,
123 ::std::string const& levelId,
124 ::std::string const& levelName,
125 ::ContentIdentity const& premiumTemplateContentIdentity,
126 ::std::string const& multiplayerCorrelationId,
127 ::BlockDefinitionGroup const& blockDefinitionGroup,
128 bool isTrial,
129 ::CompoundTag playerPropertyData,
130 ::PlayerMovementSettings const& movementSettings,
131 ::std::string const& serverVersion,
132 ::mce::UUID const& worldTemplateId,
133 ::std::optional<::ServerConfiguration::ServerConfigurationJoinInfo> const& serverJoinInfo,
134 ::Social::Events::ServerTelemetryData const& serverTelemetryData,
135 uint64 levelCurrentTime,
136 int enchantmentSeed,
137 uint64 blockTypeRegistryChecksum
138 );
139 // NOLINTEND
140
141public:
142 // destructor thunk
143 // NOLINTBEGIN
144 MCAPI void $dtor();
145 // NOLINTEND
146
147public:
148 // virtual function thunks
149 // NOLINTBEGIN
150 MCFOLD ::MinecraftPacketIds $getId() const;
151
152 MCAPI ::std::string_view $getName() const;
153
154 MCAPI void $write(::BinaryStream& stream) const;
155
156 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
157
158
159 // NOLINTEND
160
161public:
162 // vftables
163 // NOLINTBEGIN
164 MCNAPI static void** $vftable();
165 // NOLINTEND
166};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:11
Definition BlockDefinitionGroup.h:39
Definition CompoundTag.h:23
Definition ContentIdentity.h:8
Definition LevelSettings.h:39
Definition ReadOnlyBinaryStream.h:8
static MCAPI void ** $vftable()
Definition Vec2.h:5
Definition Vec3.h:10
Definition UUID.h:7
Definition ActorUniqueID.h:5
Definition PlayerMovementSettings.h:9
Definition ServerTelemetryData.h:7