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