Unregisters the entity, but only if it is registered with the registry, else we just ignore this call
| 80 | |
| 81 | /// Unregisters the entity, but only if it is registered with the registry, else we just ignore this call |
| 82 | void EveEntity::UnRegister( EveComponentRegistry* registry ) |
| 83 | { |
| 84 | if( m_registry != registry || registry == nullptr ) |
| 85 | { |
| 86 | // can't unregister from a registry that is not the registry that we are registered to... |
| 87 | return; |
| 88 | } |
| 89 | // unregister the components tied to this entity |
| 90 | m_registry->UnRegisterAllComponents( this ); |
| 91 | |
| 92 | // unregister children |
| 93 | this->UnRegisterComponents(); |
| 94 | m_registry->UnRegister( this ); |
| 95 | } |
| 96 | |
| 97 | void EveEntity::ReRegister() |
| 98 | { |
no test coverage detected