Merge branch 'havok'

Conflicts:
	src/GameWorld.cpp
	src/Systems/PhysicsSystem.cpp
	src/Systems/RenderSystem.cpp
	src/Systems/RenderSystem.h
	vs11/Returngeance/Returngeance.vcxproj
	vs11/Returngeance/Returngeance.vcxproj.filters
This commit is contained in:
2014-04-16 00:38:30 +02:00
861 changed files with 81159 additions and 157546 deletions
+4 -1
View File
@@ -18,6 +18,9 @@ public:
class ResourceManager
{
public:
ResourceManager()
: m_CurrentResourceTypeID(0) { }
// Registers the factory function of a resource type
void RegisterType(std::string resourceType, std::function<Resource*(std::string)> factoryFunction);
@@ -37,7 +40,7 @@ private:
std::unordered_map<std::string, Resource*> m_ResourceCache; // name -> resource
// TODO: Getters for IDs
unsigned int m_CurrentResourceTypeID = 0;
unsigned int m_CurrentResourceTypeID;
std::unordered_map<std::string, unsigned int> m_ResourceTypeIDs;
// Number of resources of a type. Doubles as local ID.
std::unordered_map<unsigned int, unsigned int> m_ResourceCount;