the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 39 lines 872 B view raw
1#pragma once 2 3#include "Packet.h" 4 5class LevelParticlesPacket : public Packet, public enable_shared_from_this<LevelParticlesPacket> 6{ 7private: 8 wstring name; 9 float x; 10 float y; 11 float z; 12 float xDist; 13 float yDist; 14 float zDist; 15 float maxSpeed; 16 int count; 17 18public: 19 LevelParticlesPacket(); 20 LevelParticlesPacket(const wstring &name, float x, float y, float z, float xDist, float yDist, float zDist, float maxSpeed, int count); 21 22 void read(DataInputStream *dis); 23 void write(DataOutputStream *dos); 24 wstring getName(); 25 double getX(); 26 double getY(); 27 double getZ(); 28 float getXDist(); 29 float getYDist(); 30 float getZDist(); 31 float getMaxSpeed(); 32 int getCount(); 33 void handle(PacketListener *listener); 34 int getEstimatedSize(); 35 36public: 37 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new LevelParticlesPacket()); } 38 virtual int getId() { return 63; } 39};