the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 37 lines 688 B view raw
1#include "stdafx.h" 2#include <iostream> 3#include "InputOutputStream.h" 4#include "PacketListener.h" 5#include "KickPlayerPacket.h" 6 7 8 9KickPlayerPacket::KickPlayerPacket() 10{ 11 m_networkSmallId = 0; 12} 13 14KickPlayerPacket::KickPlayerPacket(BYTE networkSmallId) 15{ 16 m_networkSmallId = networkSmallId; 17} 18 19void KickPlayerPacket::handle(PacketListener *listener) 20{ 21 listener->handleKickPlayer(shared_from_this()); 22} 23 24void KickPlayerPacket::read(DataInputStream *dis) //throws IOException 25{ 26 m_networkSmallId = dis->readByte(); 27} 28 29void KickPlayerPacket::write(DataOutputStream *dos) //throws IOException 30{ 31 dos->writeByte(m_networkSmallId); 32} 33 34int KickPlayerPacket::getEstimatedSize() 35{ 36 return 1; 37}