| 101 | } |
| 102 | |
| 103 | EntityBase* EntityRegistry::TryGetEntity(EntityId entityIndex) |
| 104 | { |
| 105 | const auto idx = entityIndex.ToUnderlying(); |
| 106 | return idx >= kMaxEntities ? nullptr : &entities[idx].base; |
| 107 | } |
| 108 | |
| 109 | EntityBase* EntityRegistry::GetEntity(EntityId entityIndex) |
| 110 | { |
no test coverage detected