Danbias/Code/Game/GameLogic/AttatchmentSocket.cpp

53 lines
674 B
C++
Raw Normal View History

#include "AttatchmentSocket.h"
#include "IAttatchment.h"
using namespace GameLogic;
struct AttatchmentSocket::PrivateData
{
PrivateData()
{
}
~PrivateData()
{
}
IAttatchment *attatchment;
}myData;
AttatchmentSocket::AttatchmentSocket(void)
{
}
AttatchmentSocket::~AttatchmentSocket(void)
{
}
IAttatchment* AttatchmentSocket::GetAttatchment()
{
return myData->attatchment;
}
void AttatchmentSocket::SetAttatchment(IAttatchment *attatchment)
{
if (myData->attatchment)
{
delete myData->attatchment;
}
myData->attatchment = attatchment;
}
void AttatchmentSocket::RemoveAttatchment()
{
if (myData->attatchment)
{
delete myData->attatchment;
}
}