| 533 | } |
| 534 | |
| 535 | const 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 | |
| 550 | const void* sugoi_group_t::get_shared_ro(sugoi_type_index_t t) const noexcept |
| 551 | { |
no test coverage detected