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 // NOLINTEND
74
75public:
76 // member functions
77 // NOLINTBEGIN
78 MCAPI StartGamePacket();
79
80 MCAPI StartGamePacket(
81 ::LevelSettings const& settings,
82 ::ActorUniqueID entityId,
83 ::ActorRuntimeID runtimeId,
84 ::GameType entityGameType,
85 bool enableItemStackNetManager,
86 ::Vec3 const& pos,
87 ::Vec2 const& rot,
88 ::std::string const& levelId,
89 ::std::string const& levelName,
90 ::ContentIdentity const& premiumTemplateContentIdentity,
91 ::std::string const& multiplayerCorrelationId,
92 ::BlockDefinitionGroup const& blockDefinitionGroup,
93 bool isTrial,
94 ::CompoundTag playerPropertyData,
95 ::PlayerMovementSettings const& movementSettings,
96 ::std::string const& serverVersion,
97 ::mce::UUID const& worldTemplateId,
98 ::std::optional<::ServerConfiguration::ServerConfigurationJoinInfo> const& serverJoinInfo,
99 ::Social::Events::ServerTelemetryData const& serverTelemetryData,
100 uint64 levelCurrentTime,
101 int enchantmentSeed,
102 uint64 blockTypeRegistryChecksum
103 );
104
105#ifdef LL_PLAT_C
106 MCFOLD ::LevelSettings const& getLevelSettings() const;
107
108 MCAPI ::std::string getMultiplayerCorrelationId() const;
109#endif
110 // NOLINTEND
111
112public:
113 // constructor thunks
114 // NOLINTBEGIN
115 MCAPI void* $ctor();
116
117 MCAPI void* $ctor(
118 ::LevelSettings const& settings,
119 ::ActorUniqueID entityId,
120 ::ActorRuntimeID runtimeId,
121 ::GameType entityGameType,
122 bool enableItemStackNetManager,
123 ::Vec3 const& pos,
124 ::Vec2 const& rot,
125 ::std::string const& levelId,
126 ::std::string const& levelName,
127 ::ContentIdentity const& premiumTemplateContentIdentity,
128 ::std::string const& multiplayerCorrelationId,
129 ::BlockDefinitionGroup const& blockDefinitionGroup,
130 bool isTrial,
131 ::CompoundTag playerPropertyData,
132 ::PlayerMovementSettings const& movementSettings,
133 ::std::string const& serverVersion,
134 ::mce::UUID const& worldTemplateId,
135 ::std::optional<::ServerConfiguration::ServerConfigurationJoinInfo> const& serverJoinInfo,
136 ::Social::Events::ServerTelemetryData const& serverTelemetryData,
137 uint64 levelCurrentTime,
138 int enchantmentSeed,
139 uint64 blockTypeRegistryChecksum
140 );
141 // NOLINTEND
142
143public:
144 // virtual function thunks
145 // NOLINTBEGIN
146 MCFOLD ::MinecraftPacketIds $getId() const;
147
148 MCAPI ::std::string_view $getName() const;
149
150 MCAPI void $write(::BinaryStream& stream) const;
151
152 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
153
154
155 // NOLINTEND
156
157public:
158 // vftables
159 // NOLINTBEGIN
160 MCNAPI static void** $vftable();
161 // NOLINTEND
162};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:11
Definition BlockDefinitionGroup.h:39
Definition CompoundTag.h:23
Definition ContentIdentity.h:8
Definition LevelSettings.h:40
Definition ReadOnlyBinaryStream.h:8
static MCAPI void ** $vftable()
Definition Vec2.h:5
Definition Vec3.h:10
Definition UUID.h:7
Definition ActorUniqueID.h:10
Definition PlayerMovementSettings.h:14
Definition ServerTelemetryData.h:7