2014-01-13 12:44:33 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
// Created by [Dennis Andersen] [2013]
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
2014-01-28 09:00:02 +01:00
|
|
|
#include "..\GameSession.h"
|
|
|
|
#include "..\GameClient.h"
|
2014-01-13 12:44:33 +01:00
|
|
|
|
2014-01-14 09:25:22 +01:00
|
|
|
#include <Protocols.h>
|
2014-01-13 12:44:33 +01:00
|
|
|
#include <PostBox\PostBox.h>
|
|
|
|
#include <GameLogicStates.h>
|
|
|
|
#include <Windows.h>
|
|
|
|
|
|
|
|
using namespace Utility::DynamicMemory;
|
|
|
|
using namespace Oyster;
|
|
|
|
using namespace Oyster::Network;
|
|
|
|
using namespace Oyster::Thread;
|
|
|
|
using namespace GameLogic;
|
|
|
|
|
|
|
|
namespace DanBias
|
|
|
|
{
|
|
|
|
void GameSession::Send(Oyster::Network::CustomNetProtocol* p)
|
|
|
|
{
|
|
|
|
for (unsigned int i = 0; i < this->clients.Size(); i++)
|
|
|
|
{
|
|
|
|
if(this->clients[i] && this->clients[i]->GetClient())
|
|
|
|
this->clients[i]->GetClient()->Send(p);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}//End namespace DanBias
|
|
|
|
|