From 9fa5b5bbfc205889b76c9bbc17b9ff7fb417ce81 Mon Sep 17 00:00:00 2001 From: Lynix Date: Mon, 4 May 2015 00:53:07 +0200 Subject: [PATCH] Ndk/Entity: Inlined IsValid() Former-commit-id: 217df236c91d7504218e1094f5a8b3f9c28d1599 --- SDK/include/NDK/Entity.inl | 5 +++++ SDK/src/NDK/Entity.cpp | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SDK/include/NDK/Entity.inl b/SDK/include/NDK/Entity.inl index 72936bee9..c3935b0bf 100644 --- a/SDK/include/NDK/Entity.inl +++ b/SDK/include/NDK/Entity.inl @@ -80,6 +80,11 @@ namespace Ndk return HasComponent(index); } + inline bool Entity::IsValid() const + { + return m_valid; + } + template void Entity::RemoveComponent() { diff --git a/SDK/src/NDK/Entity.cpp b/SDK/src/NDK/Entity.cpp index df6199e62..e6bd09ce0 100644 --- a/SDK/src/NDK/Entity.cpp +++ b/SDK/src/NDK/Entity.cpp @@ -66,11 +66,6 @@ namespace Ndk m_world->KillEntity(this); } - bool Entity::IsValid() const - { - return m_valid; - } - void Entity::RemoveAllComponents() { for (unsigned int i = m_componentBits.FindFirst(); i != m_componentBits.npos; i = m_componentBits.FindNext(i))