WIP Camera Control

This commit is contained in:
Tobias Dahl
2014-03-10 01:51:00 +01:00
parent da62ed5ac6
commit cb16ecb5d6
5 changed files with 93 additions and 6 deletions
+5
View File
@@ -42,6 +42,11 @@ public:
template <class T>
T GetProperty(EntityID entity, std::string property)
{
if(m_EntityProperties.find(entity) == m_EntityProperties.end())
return T();
if(m_EntityProperties[entity].find(property) == m_EntityProperties[entity].end())
return T();
return boost::any_cast<T>(m_EntityProperties[entity][property]);
}