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

Method destroy

modules/engine/runtime/src/ecs/chunk.cpp:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void sugoi_chunk_t::destroy(sugoi_chunk_t* chunk)
22{
23 using namespace sugoi;
24 switch (chunk->pt)
25 {
26 case PT_small:
27 return get_default_pool_small().free(chunk);
28 case PT_default:
29 return get_default_pool().free(chunk);
30 case PT_large:
31 return get_default_pool_large().free(chunk);
32 };
33}
34
35const sugoi_entity_t* sugoi_chunk_t::get_entities() const
36{

Callers

nothing calls this directly

Calls 1

freeMethod · 0.45

Tested by

no test coverage detected