the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 45 lines 1.2 kB view raw
1#pragma once 2using namespace std; 3 4#include "Packet.h" 5 6class GameEventPacket : public Packet, public enable_shared_from_this<GameEventPacket> 7{ 8 9public: 10 static const int NO_RESPAWN_BED_AVAILABLE; 11 static const int START_RAINING; 12 static const int STOP_RAINING; 13 static const int CHANGE_GAME_MODE; // 1.8.2 14 static const int WIN_GAME; // 1.0.01 15 static const int DEMO_EVENT; // 1.3.2 16 static const int SUCCESSFUL_BOW_HIT = 6; 17 18 static const int DEMO_PARAM_INTRO; // 1.3.2 19 static const int DEMO_PARAM_HINT_1; // 1.3.2 20 static const int DEMO_PARAM_HINT_2; // 1.3.2 21 static const int DEMO_PARAM_HINT_3; // 1.3.2 22 23 // 4J Added 24 static const int START_SAVING; 25 static const int STOP_SAVING; 26 27 static const int EVENT_LANGUAGE_ID_LENGTH = 6; 28 static const int EVENT_LANGUAGE_ID[EVENT_LANGUAGE_ID_LENGTH]; 29 30 31 int _event; 32 int param; 33 34 GameEventPacket(); 35 GameEventPacket(int evnt, int param); 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 GameEventPacket()); } 44 virtual int getId() { return 70; } 45};