2013-12-12 09:33:59 +01:00
|
|
|
#include "MainLobby.h"
|
2013-12-16 09:00:11 +01:00
|
|
|
#include <PlayerProtocols.h>
|
2013-12-12 09:33:59 +01:00
|
|
|
|
|
|
|
namespace DanBias
|
|
|
|
{
|
|
|
|
MainLobby::MainLobby()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
MainLobby::~MainLobby()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
void MainLobby::Release()
|
|
|
|
{
|
2013-12-16 09:00:11 +01:00
|
|
|
this->DetachClient();
|
2013-12-13 23:47:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void MainLobby::Frame()
|
|
|
|
{
|
|
|
|
if(!this->box.IsEmpty())
|
|
|
|
{
|
2013-12-16 09:00:11 +01:00
|
|
|
NetEvent &e = this->box.Fetch();
|
|
|
|
ParseEvent(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//////// Private
|
|
|
|
void MainLobby::ParseEvent(NetEvent& e)
|
|
|
|
{
|
|
|
|
static const short i = MAXSHORT;
|
|
|
|
if(e.protocol[0].type != Oyster::Network::NetAttributeType_Short) return;
|
|
|
|
|
|
|
|
short f = e.protocol[0].value.netShort;
|
2013-12-12 09:33:59 +01:00
|
|
|
|
2013-12-16 09:00:11 +01:00
|
|
|
switch (f)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
break;
|
2013-12-13 23:47:16 +01:00
|
|
|
}
|
2013-12-12 09:33:59 +01:00
|
|
|
}
|
2013-12-16 09:00:11 +01:00
|
|
|
|
2013-12-12 09:33:59 +01:00
|
|
|
}//End namespace DanBias
|