the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 34 lines 935 B view raw
1#pragma once 2using namespace std; 3 4#include "Packet.h" 5 6class LevelType; 7class GameType; 8 9class RespawnPacket : public Packet, public enable_shared_from_this<RespawnPacket> 10{ 11public: 12 char dimension; 13 char difficulty; 14 __int64 mapSeed; 15 int mapHeight; 16 GameType *playerGameType; 17 bool m_newSeaLevel; // 4J added 18 LevelType *m_pLevelType; 19 int m_newEntityId; 20 int m_xzSize; // 4J Added 21 int m_hellScale; // 4J Added 22 23 RespawnPacket(); 24 RespawnPacket(char dimension, __int64 mapSeed, int mapHeight, GameType *playerGameType, char difficulty, LevelType *pLevelType, bool newSeaLevel, int newEntityId, int xzSize, int hellScale); 25 26 virtual void handle(PacketListener *listener); 27 virtual void read(DataInputStream *dis); 28 virtual void write(DataOutputStream *dos); 29 virtual int getEstimatedSize(); 30 31public: 32 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new RespawnPacket()); } 33 virtual int getId() { return 9; } 34};