2015-05-12 03:02:15 +02:00
|
|
|
#ifndef OPENMW_COMPONENTS_BULLETSHAPEMANAGER_H
|
|
|
|
#define OPENMW_COMPONENTS_BULLETSHAPEMANAGER_H
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <osg/ref_ptr>
|
|
|
|
|
2015-11-16 23:30:10 +01:00
|
|
|
#include "bulletshape.hpp"
|
|
|
|
|
2015-05-12 03:02:15 +02:00
|
|
|
namespace VFS
|
|
|
|
{
|
|
|
|
class Manager;
|
|
|
|
}
|
|
|
|
|
2015-05-12 16:24:53 +02:00
|
|
|
namespace Resource
|
|
|
|
{
|
|
|
|
class SceneManager;
|
2015-12-01 23:04:02 +01:00
|
|
|
class NifFileManager;
|
2015-05-12 03:02:15 +02:00
|
|
|
|
|
|
|
class BulletShape;
|
|
|
|
class BulletShapeInstance;
|
|
|
|
|
|
|
|
class BulletShapeManager
|
|
|
|
{
|
|
|
|
public:
|
2015-12-01 23:04:02 +01:00
|
|
|
BulletShapeManager(const VFS::Manager* vfs, SceneManager* sceneMgr, NifFileManager* nifFileManager);
|
2015-05-12 03:02:15 +02:00
|
|
|
~BulletShapeManager();
|
|
|
|
|
|
|
|
osg::ref_ptr<BulletShapeInstance> createInstance(const std::string& name);
|
|
|
|
|
|
|
|
private:
|
|
|
|
const VFS::Manager* mVFS;
|
2015-11-17 00:18:27 +01:00
|
|
|
SceneManager* mSceneManager;
|
2015-12-01 23:04:02 +01:00
|
|
|
NifFileManager* mNifFileManager;
|
2015-05-12 03:02:15 +02:00
|
|
|
|
|
|
|
typedef std::map<std::string, osg::ref_ptr<BulletShape> > Index;
|
|
|
|
Index mIndex;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|