the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "Packet.h"
5class LevelType;
6
7class LoginPacket : public Packet, public enable_shared_from_this<LoginPacket>
8{
9public:
10 int clientVersion;
11 wstring userName;
12 __int64 seed;
13 char dimension;
14 PlayerUID m_offlineXuid, m_onlineXuid; // 4J Added
15 char difficulty; // 4J Added
16 bool m_friendsOnlyUGC; // 4J Added
17 DWORD m_ugcPlayersVersion; // 4J Added
18 INT m_multiplayerInstanceId; //4J Added for sentient
19 BYTE m_playerIndex; // 4J Added
20 DWORD m_playerSkinId, m_playerCapeId; // 4J Added
21 bool m_isGuest; // 4J Added
22 bool m_newSeaLevel; // 4J Added
23 LevelType *m_pLevelType;
24 unsigned int m_uiGamePrivileges;
25 int m_xzSize; // 4J Added
26 int m_hellScale; // 4J Added
27
28 // 1.8.2
29 int gameType;
30 BYTE mapHeight;
31 BYTE maxPlayers;
32
33 LoginPacket();
34 LoginPacket(const wstring& userName, int clientVersion, LevelType *pLevelType, __int64 seed, int gameType, char dimension, BYTE mapHeight, BYTE maxPlayers, char difficulty, INT m_multiplayerInstanceId, BYTE playerIndex, bool newSeaLevel, unsigned int uiGamePrivileges, int xzSize, int hellScale); // Server -> Client
35 LoginPacket(const wstring& userName, int clientVersion, PlayerUID offlineXuid, PlayerUID onlineXuid, bool friendsOnlyUGC, DWORD ugcPlayersVersion, DWORD skinId, DWORD capeId, bool isGuest); // Client -> Server
36
37 virtual void read(DataInputStream *dis);
38 virtual void write(DataOutputStream *dos);
39 virtual void handle(PacketListener *listener);
40 virtual int getEstimatedSize();
41
42public:
43 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new LoginPacket()); }
44 virtual int getId() { return 1; }
45};