| 446 | } |
| 447 | |
| 448 | void ImmediateWorldCache::FinalizeAddComponent(EntityHandle entity, ComponentTypeIndex type, void* component) |
| 449 | { |
| 450 | // TODO - different behavior for proxy objects? |
| 451 | auto& onConstruct = Callbacks->Get(type)->OnConstruct; |
| 452 | EntityRef e{ |
| 453 | .Handle = entity, |
| 454 | .World = EntityWorld |
| 455 | }; |
| 456 | onConstruct.Invoke(&e, component); |
| 457 | } |
| 458 | |
| 459 | ECSComponentDataMap::ECSComponentDataMap() |
| 460 | { |
no test coverage detected