Exemple #1
0
//-------------------------------------------------------------------------------------
void Baseapp::handleGameTick()
{
	EntityApp<Base>::handleGameTick();

	handleBackup();
	handleArchive();
}
bool ServerThread::handle(const Packet &p)
{
	qDebug() << "got packet of type" << p.type;
	if(p.type == Command::FileHeader) handleArchive(p);
	else if(p.type == Command::FileAction) handleAction(p);
	else if(p.type == Command::Hangup) return false;
	return true;
}