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.
716 B · 37 lines
C++
at main
1234567891011121314151617181920212223242526272829303132333435363738#include "stdafx.h"#include <iostream>#include "InputOutputStream.h"#include "PacketListener.h"#include "UpdateProgressPacket.h"
UpdateProgressPacket::UpdateProgressPacket(){ this->m_percentage = 0;}
UpdateProgressPacket::UpdateProgressPacket(int percentage){ this->m_percentage = percentage;}
void UpdateProgressPacket::read(DataInputStream *dis) //throws IOException { m_percentage = dis->readByte();}
void UpdateProgressPacket::write(DataOutputStream *dos) //throws IOException { dos->writeByte(m_percentage);}
void UpdateProgressPacket::handle(PacketListener *listener) { listener->handleUpdateProgress(shared_from_this());}
int UpdateProgressPacket::getEstimatedSize(){ return 1;}