Ndk/Entity: Remove include to Component

Former-commit-id: a209dff2bacf2793d8226671ce2feeeec46e4599
This commit is contained in:
Lynix 2015-06-04 09:56:43 +02:00
parent 80ed8c48bd
commit 30ba25168f
3 changed files with 9 additions and 7 deletions

View File

@ -8,12 +8,13 @@
#define NDK_ENTITY_HPP
#include <Nazara/Core/Bitset.hpp>
#include <NDK/Component.hpp>
#include <NDK/Algorithm.hpp>
#include <memory>
#include <vector>
namespace Ndk
{
class BaseComponent;
class EntityHandle;
class World;

View File

@ -9,12 +9,6 @@
namespace Ndk
{
inline Entity::Entity(World& world, EntityId id) :
m_id(id),
m_world(&world)
{
}
template<typename ComponentType, typename... Args>
ComponentType& Entity::AddComponent(Args&&... args)
{

View File

@ -3,6 +3,7 @@
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
#include <NDK/Entity.hpp>
#include <NDK/BaseComponent.hpp>
#include <NDK/EntityHandle.hpp>
#include <NDK/World.hpp>
@ -21,6 +22,12 @@ namespace Ndk
handle->OnEntityMoved(this);
}
Entity::Entity(World& world, EntityId id) :
m_id(id),
m_world(&world)
{
}
Entity::~Entity()
{
Destroy();