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

Method get_owner

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

Source from the content-addressed store, hash-verified

533}
534
535const sugoi_group_t* sugoi_group_t::get_owner(sugoi_type_index_t t) const noexcept
536{
537 using namespace sugoi;
538 if (index(t) != kInvalidSIndex)
539 return this;
540 auto storage = archetype->storage;
541 for (EIndex i = 0; i < type.meta.length; ++i)
542 {
543 auto metaGroup = storage->entities.entries[e_id(type.meta.data[i])].chunk->group;
544 if (auto g = metaGroup->get_owner(t))
545 return g;
546 }
547 return nullptr;
548}
549
550const void* sugoi_group_t::get_shared_ro(sugoi_type_index_t t) const noexcept
551{

Callers 2

sync_queryMethod · 0.80
update_dependenciesMethod · 0.80

Calls 1

indexFunction · 0.85

Tested by

no test coverage detected