1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 19:49:54 +00:00
openmw-tes3mp/components/resource/resourcesystem.cpp

26 lines
528 B
C++

#include "resourcesystem.hpp"
#include "scenemanager.hpp"
#include "texturemanager.hpp"
namespace Resource
{
ResourceSystem::ResourceSystem(const VFS::Manager *vfs)
: mVFS(vfs)
{
mTextureManager.reset(new TextureManager(vfs));
mSceneManager.reset(new SceneManager(vfs, mTextureManager.get()));
}
SceneManager* ResourceSystem::getSceneManager()
{
return mSceneManager.get();
}
const VFS::Manager* ResourceSystem::getVFS() const
{
return mVFS;
}
}