Ndk/Entity: Inlined IsValid()
Former-commit-id: 217df236c91d7504218e1094f5a8b3f9c28d1599
This commit is contained in:
parent
58416694d4
commit
9fa5b5bbfc
|
|
@ -80,6 +80,11 @@ namespace Ndk
|
||||||
return HasComponent(index);
|
return HasComponent(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool Entity::IsValid() const
|
||||||
|
{
|
||||||
|
return m_valid;
|
||||||
|
}
|
||||||
|
|
||||||
template<typename ComponentType>
|
template<typename ComponentType>
|
||||||
void Entity::RemoveComponent()
|
void Entity::RemoveComponent()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -66,11 +66,6 @@ namespace Ndk
|
||||||
m_world->KillEntity(this);
|
m_world->KillEntity(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Entity::IsValid() const
|
|
||||||
{
|
|
||||||
return m_valid;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Entity::RemoveAllComponents()
|
void Entity::RemoveAllComponents()
|
||||||
{
|
{
|
||||||
for (unsigned int i = m_componentBits.FindFirst(); i != m_componentBits.npos; i = m_componentBits.FindNext(i))
|
for (unsigned int i = m_componentBits.FindFirst(); i != m_componentBits.npos; i = m_componentBits.FindNext(i))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue