From 30ba25168f845a74f26db86f61ad83732da9fd7f Mon Sep 17 00:00:00 2001 From: Lynix Date: Thu, 4 Jun 2015 09:56:43 +0200 Subject: [PATCH] Ndk/Entity: Remove include to Component Former-commit-id: a209dff2bacf2793d8226671ce2feeeec46e4599 --- SDK/include/NDK/Entity.hpp | 3 ++- SDK/include/NDK/Entity.inl | 6 ------ SDK/src/NDK/Entity.cpp | 7 +++++++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/SDK/include/NDK/Entity.hpp b/SDK/include/NDK/Entity.hpp index 57cc72a66..4ad4f86aa 100644 --- a/SDK/include/NDK/Entity.hpp +++ b/SDK/include/NDK/Entity.hpp @@ -8,12 +8,13 @@ #define NDK_ENTITY_HPP #include -#include +#include #include #include namespace Ndk { + class BaseComponent; class EntityHandle; class World; diff --git a/SDK/include/NDK/Entity.inl b/SDK/include/NDK/Entity.inl index c3935b0bf..2d9bd42a7 100644 --- a/SDK/include/NDK/Entity.inl +++ b/SDK/include/NDK/Entity.inl @@ -9,12 +9,6 @@ namespace Ndk { - inline Entity::Entity(World& world, EntityId id) : - m_id(id), - m_world(&world) - { - } - template ComponentType& Entity::AddComponent(Args&&... args) { diff --git a/SDK/src/NDK/Entity.cpp b/SDK/src/NDK/Entity.cpp index 445efffa4..3600e46cf 100644 --- a/SDK/src/NDK/Entity.cpp +++ b/SDK/src/NDK/Entity.cpp @@ -3,6 +3,7 @@ // For conditions of distribution and use, see copyright notice in Prerequesites.hpp #include +#include #include #include @@ -21,6 +22,12 @@ namespace Ndk handle->OnEntityMoved(this); } + Entity::Entity(World& world, EntityId id) : + m_id(id), + m_world(&world) + { + } + Entity::~Entity() { Destroy();