MCPcopy Create free account
hub / github.com/Illation/ETEngine / GetComponentsAndTypes

Method GetComponentsAndTypes

Engine/source/EtFramework/ECS/EcsController.cpp:605–614  ·  view source on GitHub ↗

-------------------------------------- EcsController::GetComponentsAndTypes

Source from the content-addressed store, hash-verified

603// EcsController::GetComponentsAndTypes
604//
605T_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

Callers

nothing calls this directly

Calls 1

AtMethod · 0.80

Tested by

no test coverage detected