Added ChatServer and soePlatform

This commit is contained in:
Anonymous
2014-01-17 03:40:51 -07:00
parent 26b88b4533
commit 4fae2dfe0f
183 changed files with 64549 additions and 0 deletions
@@ -0,0 +1,40 @@
// ChatServerAvatarOwner.cpp
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
// Author: Justin Randall
//-----------------------------------------------------------------------
#include "FirstChatServer.h"
#include "ChatServerAvatarOwner.h"
#include "ConnectionServerConnection.h"
//-----------------------------------------------------------------------
ChatServerAvatarOwner::ChatServerAvatarOwner(ConnectionServerConnection * c, const NetworkId & n) :
networkId(n),
playerConnection(c)
{
c->addAvatar(this);
}
//-----------------------------------------------------------------------
ChatServerAvatarOwner::~ChatServerAvatarOwner()
{
if(playerConnection)
{
playerConnection->removeAvatar(this);
}
playerConnection = 0;
}
//-----------------------------------------------------------------------
void ChatServerAvatarOwner::setPlayerConnection(ConnectionServerConnection * c)
{
playerConnection = c;
}
//-----------------------------------------------------------------------