Ndk/Entity: Inlined IsValid()

Former-commit-id: 217df236c91d7504218e1094f5a8b3f9c28d1599
This commit is contained in:
Lynix 2015-05-04 00:53:07 +02:00
parent 58416694d4
commit 9fa5b5bbfc
2 changed files with 5 additions and 5 deletions

View File

@ -80,6 +80,11 @@ namespace Ndk
return HasComponent(index);
}
inline bool Entity::IsValid() const
{
return m_valid;
}
template<typename ComponentType>
void Entity::RemoveComponent()
{

View File

@ -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))