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.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, 1440, ::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, 8, ::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, bool> mTickDeathSystemsEnabled;
55 ::ll::TypedStorage<1, 1, ::NetworkPermissions> mNetworkPermissions;
56 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::std::string, ::CompoundTag>>> mBlockProperties;
57 // NOLINTEND
58
59public:
60 // virtual functions
61 // NOLINTBEGIN
62 // vIndex: 1
63 virtual ::MinecraftPacketIds getId() const /*override*/;
64
65 // vIndex: 2
66 virtual ::std::string getName() const /*override*/;
67
68 // vIndex: 5
69 virtual void write(::BinaryStream& stream) const /*override*/;
70
71 // vIndex: 14
72 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
73
74 // vIndex: 0
75 virtual ~StartGamePacket() /*override*/;
76 // NOLINTEND
77
78public:
79 // member functions
80 // NOLINTBEGIN
81 MCAPI StartGamePacket();
82
83 MCAPI StartGamePacket(
84 ::LevelSettings const& settings,
85 ::ActorUniqueID entityId,
86 ::ActorRuntimeID runtimeId,
87 ::GameType entityGameType,
88 bool enableItemStackNetManager,
89 ::Vec3 const& pos,
90 ::Vec2 const& rot,
91 ::std::string const& levelId,
92 ::std::string const& levelName,
93 ::ContentIdentity const& premiumTemplateContentIdentity,
94 ::std::string const& multiplayerCorrelationId,
95 ::BlockDefinitionGroup const& blockDefinitionGroup,
96 bool isTrial,
97 ::CompoundTag playerPropertyData,
98 ::PlayerMovementSettings const& movementSettings,
99 bool enableTickDeathSystems,
100 ::std::string const& serverVersion,
101 ::mce::UUID const& worldTemplateId,
102 uint64 levelCurrentTime,
103 int enchantmentSeed,
104 uint64 blockTypeRegistryChecksum
105 );
106 // NOLINTEND
107
108public:
109 // constructor thunks
110 // NOLINTBEGIN
111 MCAPI void* $ctor();
112
113 MCAPI void* $ctor(
114 ::LevelSettings const& settings,
115 ::ActorUniqueID entityId,
116 ::ActorRuntimeID runtimeId,
117 ::GameType entityGameType,
118 bool enableItemStackNetManager,
119 ::Vec3 const& pos,
120 ::Vec2 const& rot,
121 ::std::string const& levelId,
122 ::std::string const& levelName,
123 ::ContentIdentity const& premiumTemplateContentIdentity,
124 ::std::string const& multiplayerCorrelationId,
125 ::BlockDefinitionGroup const& blockDefinitionGroup,
126 bool isTrial,
127 ::CompoundTag playerPropertyData,
128 ::PlayerMovementSettings const& movementSettings,
129 bool enableTickDeathSystems,
130 ::std::string const& serverVersion,
131 ::mce::UUID const& worldTemplateId,
132 uint64 levelCurrentTime,
133 int enchantmentSeed,
134 uint64 blockTypeRegistryChecksum
135 );
136 // NOLINTEND
137
138public:
139 // destructor thunk
140 // NOLINTBEGIN
141 MCAPI void $dtor();
142 // NOLINTEND
143
144public:
145 // virtual function thunks
146 // NOLINTBEGIN
147 MCFOLD ::MinecraftPacketIds $getId() const;
148
149 MCAPI ::std::string $getName() const;
150
151 MCAPI void $write(::BinaryStream& stream) const;
152
153 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
154 // NOLINTEND
155
156public:
157 // vftables
158 // NOLINTBEGIN
159 MCNAPI static void** $vftable();
160 // NOLINTEND
161};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition BlockDefinitionGroup.h:39
Definition CompoundTag.h:13
Definition ContentIdentity.h:8
Definition LevelSettings.h:38
Definition Packet.h:43
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:9