---------------------------------- EcsCommandBuffer::ReparentEntity
| 89 | // EcsCommandBuffer::ReparentEntity |
| 90 | // |
| 91 | void EcsCommandBuffer::ReparentEntity(T_EntityId const entity, T_EntityId const newParent) |
| 92 | { |
| 93 | ET_ASSERT(std::find_if(m_ReparentEntities.cbegin(), m_ReparentEntities.cend(), [entity](std::pair<T_EntityId, T_EntityId> const& pair) |
| 94 | { |
| 95 | return (entity == pair.first); |
| 96 | }) == m_ReparentEntities.cend(), "Entity was already queued for reparenting!"); |
| 97 | |
| 98 | m_ReparentEntities.emplace_back(entity, newParent); |
| 99 | } |
| 100 | |
| 101 | //---------------------------------- |
| 102 | // EcsCommandBuffer::RemoveEntity |