the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 32 lines 726 B view raw
1#pragma once 2using namespace std; 3 4#include "Packet.h" 5 6class PlayerInputPacket : public Packet, public enable_shared_from_this<PlayerInputPacket> 7{ 8 9private: 10 float xxa; 11 float yya; 12 bool isJumpingVar; 13 bool isSneakingVar; 14 15public: 16 PlayerInputPacket(); 17 PlayerInputPacket(float xxa, float yya, bool isJumpingVar, bool isSneakingVar); 18 19 virtual void read(DataInputStream *dis); 20 virtual void write(DataOutputStream *dos); 21 virtual void handle(PacketListener *listener); 22 virtual int getEstimatedSize(); 23 24 float getXxa(); 25 float getYya(); 26 bool isJumping(); 27 bool isSneaking(); 28 29public: 30 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new PlayerInputPacket()); } 31 virtual int getId() { return 27; } 32};