MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / clear

Method clear

modules/engine/runtime/src/ecs/archetype.cpp:435–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void 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
450TIndex sugoi_group_t::index(sugoi_type_index_t inType) const noexcept
451{

Callers 15

unmap_allMethod · 0.45
updateMethod · 0.45
remove_all_contextsMethod · 0.45
loadMethod · 0.45
reset_blocksMethod · 0.45
addUploadRequestsMethod · 0.45
UnloadMethod · 0.45
ShutdownMethod · 0.45
_UpdateAsyncSerdeMethod · 0.45
UpdateMethod · 0.45
SetStatusMethod · 0.45
resetMethod · 0.45

Calls 4

destruct_viewFunction · 0.85
destruct_chunkFunction · 0.85
free_entitiesMethod · 0.80
destroyFunction · 0.50

Tested by

no test coverage detected