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/legacy/ActorRuntimeID.h"
10#include "mc/legacy/ActorUniqueID.h"
11#include "mc/nbt/CompoundTag.h"
12#include "mc/network/MinecraftPacketIds.h"
13#include "mc/network/NetworkPermissions.h"
14#include "mc/network/packet/Packet.h"
15#include "mc/platform/Result.h"
16#include "mc/platform/UUID.h"
17#include "mc/world/actor/player/SyncedPlayerMovementSettings.h"
18#include "mc/world/level/GameType.h"
19#include "mc/world/level/LevelSettings.h"
20
21// auto generated forward declare list
22// clang-format off
23class BinaryStream;
27// clang-format on
28
29class StartGamePacket : public ::Packet {
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 1408, ::LevelSettings> mSettings;
34 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityId;
35 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mRuntimeId;
36 ::ll::TypedStorage<4, 4, ::GameType> mEntityGameType;
37 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
38 ::ll::TypedStorage<4, 8, ::Vec2> mRot;
39 ::ll::TypedStorage<8, 32, ::std::string> mLevelId;
40 ::ll::TypedStorage<8, 32, ::std::string> mLevelName;
41 ::ll::TypedStorage<8, 24, ::ContentIdentity> mTemplateContentIdentity;
42 ::ll::TypedStorage<8, 16, ::mce::UUID> mWorldTemplateId;
43 ::ll::TypedStorage<1, 1, bool> mIsTrial;
44 ::ll::TypedStorage<4, 12, ::SyncedPlayerMovementSettings> mMovementSettings;
45 ::ll::TypedStorage<8, 8, uint64> mLevelCurrentTime;
46 ::ll::TypedStorage<4, 4, int> mEnchantmentSeed;
47 ::ll::TypedStorage<8, 32, ::std::string> mMultiplayerCorrelationId;
48 ::ll::TypedStorage<1, 1, bool> mEnableItemStackNetManager;
49 ::ll::TypedStorage<8, 32, ::std::string> mServerVersion;
50 ::ll::TypedStorage<8, 24, ::CompoundTag> mPlayerPropertyData;
51 ::ll::TypedStorage<8, 8, uint64> mServerBlockTypeRegistryChecksum;
52 ::ll::TypedStorage<1, 1, bool> mServerEnabledClientSideGeneration;
53 ::ll::TypedStorage<1, 1, bool> mBlockNetworkIdsAreHashes;
54 ::ll::TypedStorage<1, 1, ::NetworkPermissions> mNetworkPermissions;
55 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::std::string, ::CompoundTag>>> mBlockProperties;
56 // NOLINTEND
57
58public:
59 // virtual functions
60 // NOLINTBEGIN
61 // vIndex: 1
62 virtual ::MinecraftPacketIds getId() const /*override*/;
63
64 // vIndex: 2
65 virtual ::std::string getName() const /*override*/;
66
67 // vIndex: 4
68 virtual void write(::BinaryStream& stream) const /*override*/;
69
70 // vIndex: 8
71 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
72
73 // vIndex: 0
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 uint64 levelCurrentTime,
101 int enchantmentSeed,
102 uint64 blockTypeRegistryChecksum
103 );
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCAPI void* $ctor();
110
111 MCAPI void* $ctor(
112 ::LevelSettings const& settings,
113 ::ActorUniqueID entityId,
114 ::ActorRuntimeID runtimeId,
115 ::GameType entityGameType,
116 bool enableItemStackNetManager,
117 ::Vec3 const& pos,
118 ::Vec2 const& rot,
119 ::std::string const& levelId,
120 ::std::string const& levelName,
121 ::ContentIdentity const& premiumTemplateContentIdentity,
122 ::std::string const& multiplayerCorrelationId,
123 ::BlockDefinitionGroup const& blockDefinitionGroup,
124 bool isTrial,
125 ::CompoundTag playerPropertyData,
126 ::PlayerMovementSettings const& movementSettings,
127 ::std::string const& serverVersion,
128 ::mce::UUID const& worldTemplateId,
129 uint64 levelCurrentTime,
130 int enchantmentSeed,
131 uint64 blockTypeRegistryChecksum
132 );
133 // NOLINTEND
134
135public:
136 // destructor thunk
137 // NOLINTBEGIN
138 MCAPI void $dtor();
139 // NOLINTEND
140
141public:
142 // virtual function thunks
143 // NOLINTBEGIN
144 MCFOLD ::MinecraftPacketIds $getId() const;
145
146 MCAPI ::std::string $getName() const;
147
148 MCAPI void $write(::BinaryStream& stream) const;
149
150 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
151 // NOLINTEND
152
153public:
154 // vftables
155 // NOLINTBEGIN
156 MCNAPI static void** $vftable();
157 // NOLINTEND
158};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition BlockDefinitionGroup.h:34
Definition CompoundTag.h:13
Definition ContentIdentity.h:8
Definition LevelSettings.h:37
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition StartGamePacket.h:29
static MCAPI void ** $vftable()
Definition Vec2.h:5
Definition Vec3.h:10
Definition UUID.h:7
Definition ActorUniqueID.h:5
Definition PlayerMovementSettings.h:11