/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | ecs_util.h | 115 CORE_NS::IEcs& ecs, CORE_NS::Entity entity, BASE_NS::unordered_map<CORE_NS::Entity, CORE_NS::Entity>& oldToNew) in RewriteEntityReferences() 117 // Go through the entity properties and update any entity references to point to the ones pointed by the oldToNew in RewriteEntityReferences() 138 if (const auto it = oldToNew.find(*entity); it != oldToNew.end()) { in RewriteEntityReferences() 143 if (const auto it = oldToNew.find(*entity); it != oldToNew.end()) { in RewriteEntityReferences() 182 BASE_NS::unordered_map<CORE_NS::Entity, CORE_NS::Entity> oldToNew; in CloneEntitiesUpdateRefs() local 188 oldToNew[srcEntity] = clonedEntities.back(); in CloneEntitiesUpdateRefs() 192 RewriteEntityReferences(dstEcs, entity, oldToNew); in CloneEntitiesUpdateRefs() 114 RewriteEntityReferences( CORE_NS::IEcs& ecs, CORE_NS::Entity entity, BASE_NS::unordered_map<CORE_NS::Entity, CORE_NS::Entity>& oldToNew) RewriteEntityReferences() argument
|
H A D | entity_collection.cpp | 618 array_view<const EntityReference> entities, unordered_map<Entity, Entity>& oldToNew, 635 dstSerializationCollection, srcSubCollection->GetEntities(), oldToNew, clonedOut); 646 dstSerializationCollection, { &root, 1 }, oldToNew, clonedOut); 654 oldToNew[srcEntity] = dstEntity; 680 unordered_map<Entity, Entity> oldToNew; 684 CloneEntitiesFromCollection(srcCollection, *this, srcCollection, *this, entities, oldToNew, entitiesOut); 687 RewriteEntityReferences(GetEcs(), entity, oldToNew); 707 unordered_map<Entity, Entity> oldToNew; 718 oldToNew[sourceEntities[i]] = clonedEntities[i]; 721 RewriteEntityReferences(dst.GetEcs(), entity, oldToNew); [all...] |
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/EcsSerializer/src/ecs_serializer/ |
H A D | entity_collection.cpp | 586 CopyFrom(*col, allEntities, copy, oldToNew, clonedOut, true); 591 oldToNew[srcEntity] = dstEntity; 609 CopyFrom(*subCollection, allEntities, copy, oldToNew, clonedOut, false); 615 CORE_NS::Entity GetOldEntity(unordered_map<Entity, Entity>& oldToNew, CORE_NS::Entity newEntity) 617 for (auto& e : oldToNew) { 626 unordered_map<Entity, Entity>& oldToNew, vector<EntityReference>& entitiesOut) 630 auto srcEntity = GetOldEntity(oldToNew, entityOut); 646 unordered_map<Entity, Entity> oldToNew; 650 CopyFrom(srcCollection, entities, *this, oldToNew, entitiesOut, false); 651 CopySerializationInfo(srcCollection, *this, oldToNew, entitiesOu [all...] |
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/EcsSerializer/include/ecs_serializer/ |
H A D | ecs_clone_util.h | 111 IEcs& ecs, Entity entity, unordered_map<Entity, Entity>& oldToNew) in RewriteEntityReferences() 157 unordered_map<Entity, Entity> oldToNew; in CloneEntitiesUpdateRefs() local 162 RewriteEntityReferences(dstEcs, entity, oldToNew); in CloneEntitiesUpdateRefs() 110 RewriteEntityReferences( IEcs& ecs, Entity entity, unordered_map<Entity, Entity>& oldToNew) RewriteEntityReferences() argument
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/ |
H A D | node_system.cpp | 1080 unordered_map<Entity, Entity> oldToNew; in CloneNode() local 1081 oldToNew.reserve(nodes.size()); in CloneNode() 1083 oldToNew.insert({ originalEntity, ecs_.CloneEntity(originalEntity) }); in CloneNode() 1085 auto update = [](const unordered_map<Entity, Entity>& oldToNew, const Property& property, IPropertyHandle* handle, in CloneNode() 1088 if (const auto pos = oldToNew.find(current); pos != oldToNew.end()) { in CloneNode() 1097 for (auto [oldEntity, newEntity] : oldToNew) { in CloneNode() 1106 update(oldToNew, property, handle, current, entityIdx); in CloneNode() 1116 return GetNode(oldToNew[nodes.front()]); in CloneNode()
|