| 584 | } |
| 585 | |
| 586 | void* EntityCommandBuffer::CreateComponentRaw(EntityHandle entity, ComponentTypeIndex type, uint16_t componentSize, ComponentFrameStorageIndex& index, void* dtor) |
| 587 | { |
| 588 | auto storage = GetStorage(type, componentSize, dtor); |
| 589 | |
| 590 | auto component = storage->Allocate(index); |
| 591 | auto changes = Data.GetOrAddEntityChange(entity); |
| 592 | auto change = changes->Store.add(); |
| 593 | change->Index = index; |
| 594 | change->ComponentTypeId = type; |
| 595 | |
| 596 | return component; |
| 597 | } |
| 598 | |
| 599 | void EntityCommandBuffer::RemoveComponent(EntityHandle entity, ComponentTypeIndex type, uint16_t componentSize, void* dtor) |
| 600 | { |
nothing calls this directly
no test coverage detected