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

Method deserialize_single

modules/engine/runtime/src/ecs/serialize.cpp:186–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186sugoi_entity_t sugoi_storage_t::deserialize_single(skr_binary_reader_t* s)
187{
188 using namespace sugoi;
189 fixed_stack_scope_t _(localStack);
190 auto type = deserialize_type(localStack, s, false);
191 auto group = get_group(type);
192 if(scheduler)
193 scheduler->sync_archetype(group->archetype);
194 sugoi_chunk_view_t view;
195 serialize_view(group, view, nullptr, s, false);
196 entities.fill_entities(view);
197 return view.chunk->get_entities()[view.start];
198}
199
200//[count] ([group] [slice])*
201void sugoi_storage_t::serialize_prefab(sugoi_entity_t e, skr_binary_writer_t* s)

Callers

nothing calls this directly

Calls 3

sync_archetypeMethod · 0.80
fill_entitiesMethod · 0.80
get_entitiesMethod · 0.45

Tested by

no test coverage detected