First work on EntityFileWriter for saving levels

This commit is contained in:
2016-01-08 11:21:10 +01:00
parent 23e78c4947
commit 81024b4a1d
7 changed files with 177 additions and 4 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ ComponentWrapper World::AttachComponent(EntityID entity, std::string componentTy
}
bool World::HasComponent(EntityID entity, std::string componentType)
bool World::HasComponent(EntityID entity, std::string componentType) const
{
ComponentPool* pool = m_ComponentPools.at(componentType);
return pool->KnowsEntity(entity);