---------------------------------------- EcsCommandBuffer::RemoveComponentTypes
| 135 | // EcsCommandBuffer::RemoveComponentTypes |
| 136 | // |
| 137 | void EcsCommandBuffer::RemoveComponentTypes(T_EntityId const entity, T_CompTypeList const& componentTypes) |
| 138 | { |
| 139 | // get the component type buffer for the entity |
| 140 | auto buffer = m_RemoveComponents.emplace(entity, T_CompTypeList()).first; |
| 141 | |
| 142 | // add components to remove to the buffer |
| 143 | for (T_CompTypeIdx const compType : componentTypes) |
| 144 | { |
| 145 | buffer->second.push_back(compType); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | //---------------------------- |
| 150 | // EcsCommandBuffer::OnMerge |