| 659 | } |
| 660 | |
| 661 | bool EntityWorld::IsValid(EntityHandle entityHandle) const |
| 662 | { |
| 663 | if (entityHandle.GetThreadIndex() < std::size(HandleGenerator->ThreadStates)) { |
| 664 | auto& state = HandleGenerator->ThreadStates[entityHandle.GetThreadIndex()]; |
| 665 | if (entityHandle.GetIndex() < state.Entries.size()) { |
| 666 | auto const& salt = state.Entries[entityHandle.GetIndex()]; |
| 667 | return salt.Salt == entityHandle.GetSalt() && salt.Index == entityHandle.GetIndex(); |
| 668 | } |
| 669 | } |
| 670 | |
| 671 | return false; |
| 672 | } |
| 673 | |
| 674 | EntityCommandBuffer* EntityWorld::Deferred() |
| 675 | { |
no test coverage detected