| 222 | } |
| 223 | |
| 224 | bool EntityHandleGenerator::IsEntityAlive(EntityHandle entity) const |
| 225 | { |
| 226 | if (entity.GetThreadIndex() < ThreadStates.size()) { |
| 227 | auto const& state = ThreadStates[entity.GetThreadIndex()]; |
| 228 | if (entity.GetIndex() < state.Entries.size()) { |
| 229 | auto const& entry = state.Entries[entity.GetIndex()]; |
| 230 | return entry.Index == entity.GetIndex() |
| 231 | && entry.Salt == entity.GetSalt(); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | return false; |
| 236 | } |
| 237 | |
| 238 | EntityHandle EntityHandleGenerator::Create() |
| 239 | { |
no test coverage detected