Components *Attributes::Clone()
{
    Components *attributes = new Attributes();
    attributes->SetId(this->GetId());
    attributes->SetType(this->GetType());
    attributes->SetName(this->GetName());
    attributes->SetPointX(this->GetPointX());
    attributes->SetPointY(this->GetPointY());
    return attributes;
}
Пример #2
0
Components *Entity::Clone()
{
	Components *entity = new Entity();
	entity->SetId(this->GetId());
	entity->SetType(this->GetType());
	entity->SetName(this->GetName());
	entity->SetPointX(this->GetPointX());
	entity->SetPointY(this->GetPointY());
	return entity;
}