/////////////////////////////////////////////////////////////////////
| 474 | |
| 475 | ////////////////////////////////////////////////////////////////////////// |
| 476 | bool CEntitySystem::InitEntity( IEntity* pEntity,CEntityDesc &ed ) |
| 477 | { |
| 478 | assert( pEntity ); |
| 479 | CEntity *pCEntity = (CEntity*)pEntity; |
| 480 | // initialize entity |
| 481 | if (!pCEntity->Init(ed)) |
| 482 | { |
| 483 | DeleteEntity(pEntity); |
| 484 | return false; |
| 485 | } |
| 486 | return true; |
| 487 | } |
| 488 | |
| 489 | ////////////////////////////////////////////////////////////////////// |
| 490 | void CEntitySystem::RemoveEntity( EntityId entity,bool bRemoveNow ) |
no test coverage detected