| 433 | } |
| 434 | |
| 435 | void sugoi_group_t::clear() |
| 436 | { |
| 437 | using namespace sugoi; |
| 438 | for(auto chunk : chunks) |
| 439 | { |
| 440 | archetype->storage->entities.free_entities({ chunk, 0, chunk->count }); |
| 441 | destruct_view({ chunk, 0, chunk->count }); |
| 442 | destruct_chunk(chunk); |
| 443 | sugoi_chunk_t::destroy(chunk); |
| 444 | } |
| 445 | chunks.clear(); |
| 446 | firstFree = 0; |
| 447 | size = 0; |
| 448 | } |
| 449 | |
| 450 | TIndex sugoi_group_t::index(sugoi_type_index_t inType) const noexcept |
| 451 | { |
no test coverage detected