2022-11-15 12:19:11 +01:00
|
|
|
#include "Entity.h"
|
|
|
|
|
|
|
|
|
|
using namespace Seele;
|
|
|
|
|
|
|
|
|
|
Entity::Entity(PScene scene)
|
|
|
|
|
: identifier(scene->createEntity())
|
|
|
|
|
, scene(scene)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Entity::~Entity()
|
|
|
|
|
{
|
2023-01-21 18:43:21 +01:00
|
|
|
scene->destroyEntity(identifier);
|
2022-11-15 12:19:11 +01:00
|
|
|
}
|