39 lines
619 B
C++
39 lines
619 B
C++
#include "AttatchmentSocket.h"
|
|
#include "IAttatchment.h"
|
|
#include "DynamicArray.h"
|
|
|
|
using namespace GameLogic;
|
|
using namespace Utility::DynamicMemory;
|
|
|
|
|
|
AttatchmentSocket::AttatchmentSocket(void)
|
|
{
|
|
this->attatchment = 0;
|
|
}
|
|
|
|
|
|
AttatchmentSocket::~AttatchmentSocket(void)
|
|
{
|
|
//if(this->attatchment)
|
|
//delete this->attatchment;
|
|
|
|
//this->attatchment = 0;
|
|
}
|
|
|
|
IAttatchment* AttatchmentSocket::GetAttatchment()
|
|
{
|
|
return this->attatchment;
|
|
}
|
|
|
|
void AttatchmentSocket::SetAttatchment(IAttatchment *attatchment)
|
|
{
|
|
this->attatchment = attatchment;
|
|
}
|
|
|
|
void AttatchmentSocket::RemoveAttatchment()
|
|
{
|
|
|
|
this->attatchment = 0;
|
|
|
|
}
|