Sdk/Entity: Add IsDying method

This commit is contained in:
Jérôme Leclercq
2018-07-17 10:51:35 +02:00
parent 6dfc866a4d
commit 7b6cc47e03
5 changed files with 62 additions and 3 deletions

View File

@@ -133,13 +133,22 @@ namespace Ndk
/*!
* \brief Invalidates the entity
*/
void Entity::Invalidate()
{
// We alert everyone that we have been updated
m_world->Invalidate(m_id);
}
/*!
* \brief Checks if the entity has been killed this update
* \return True if the entity is currently dying and will be dead at next world refresh
*/
bool Entity::IsDying() const
{
return m_world->IsEntityDying(m_id);
}
/*!
* \brief Creates the entity
*/