Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
726 B · 32 lines
C
at master
1234567891011121314151617181920212223242526272829303132#pragma onceusing namespace std;
#include "Packet.h"
class PlayerInputPacket : public Packet, public enable_shared_from_this<PlayerInputPacket>{
private: float xxa; float yya; bool isJumpingVar; bool isSneakingVar;
public: PlayerInputPacket(); PlayerInputPacket(float xxa, float yya, bool isJumpingVar, bool isSneakingVar);
virtual void read(DataInputStream *dis); virtual void write(DataOutputStream *dos); virtual void handle(PacketListener *listener); virtual int getEstimatedSize();
float getXxa(); float getYya(); bool isJumping(); bool isSneaking();
public: static shared_ptr<Packet> create() { return shared_ptr<Packet>(new PlayerInputPacket()); } virtual int getId() { return 27; }};