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

Method fill_entities

modules/engine/runtime/src/ecs/entities.cpp:78–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void entity_registry_t::fill_entities(const sugoi_chunk_view_t& view)
79{
80 auto ents = (sugoi_entity_t*)view.chunk->get_entities() + view.start;
81 new_entities(ents, view.count);
82 forloop (i, 0, view.count)
83 {
84 entry_t& e = entries[e_id(ents[i])];
85 e.indexInChunk = view.start + i;
86 e.chunk = view.chunk;
87 }
88}
89
90void entity_registry_t::fill_entities(const sugoi_chunk_view_t& view, const sugoi_entity_t* src)
91{

Callers 4

allocateMethod · 0.80
instantiate_prefabMethod · 0.80
instantiateMethod · 0.80
deserialize_singleMethod · 0.80

Calls 2

memcpyFunction · 0.85
get_entitiesMethod · 0.45

Tested by

no test coverage detected