Basic editor copy and paste. Doesn't actually copy the entity until you paste it.

This commit is contained in:
2016-02-25 17:51:28 +01:00
parent da1c7b3093
commit 9e6c67596d
10 changed files with 71 additions and 6 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ EntityWrapper SpawnerSystem::Spawn(EntityWrapper spawner, EntityWrapper parent /
}
// Find any SpawnPoints existing as children of spawner
auto children = spawner.World->GetChildren(spawner.ID);
auto children = spawner.World->GetDirectChildren(spawner.ID);
std::vector<EntityWrapper> spawnPoints;
for (auto kv = children.first; kv != children.second; ++kv) {
const EntityID& child = kv->second;