-------------------------------------- EcsController::GetComponentsAndTypes
| 603 | // EcsController::GetComponentsAndTypes |
| 604 | // |
| 605 | T_CompTypeList EcsController::GetComponentsAndTypes(EntityData& ent, std::vector<RawComponentPtr>& components) |
| 606 | { |
| 607 | T_CompTypeList compTypes = ent.archetype->GetSignature().GetTypes(); |
| 608 | for (T_CompTypeIdx const type : compTypes) |
| 609 | { |
| 610 | components.emplace_back(type, ent.archetype->GetPool(type).At(ent.index)); |
| 611 | } |
| 612 | |
| 613 | return compTypes; |
| 614 | } |
| 615 | |
| 616 | //------------------------------ |
| 617 | // EcsController::MoveArchetype |