| 358 | } |
| 359 | |
| 360 | void* ImmediateWorldCache::Changes::GetChange(EntityHandle entityHandle, ComponentTypeIndex type) const |
| 361 | { |
| 362 | auto typeIdx = (uint16_t)type; |
| 363 | if (AvailableComponentTypes[typeIdx]) { |
| 364 | auto change = ComponentsByType[typeIdx].Components.find(entityHandle); |
| 365 | if (change) { |
| 366 | return change->Ptr; |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | return nullptr; |
| 371 | } |
| 372 | |
| 373 | ImmediateWorldCache::ComponentChanges* ImmediateWorldCache::Changes::GetOrAddComponentChanges(ComponentTypeEntry const* type, FrameAllocator* allocator) |
| 374 | { |