2017-03-06 18:04:17 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_ESMTERRAIN_LANDMANAGER_H
|
|
|
|
#define OPENMW_COMPONENTS_ESMTERRAIN_LANDMANAGER_H
|
|
|
|
|
|
|
|
#include <osg/Object>
|
|
|
|
|
|
|
|
#include <components/resource/resourcemanager.hpp>
|
|
|
|
#include <components/esmterrain/storage.hpp>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
struct Land;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWRender
|
|
|
|
{
|
|
|
|
|
|
|
|
class LandManager : public Resource::ResourceManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
LandManager(int loadFlags);
|
|
|
|
|
2018-10-09 06:21:12 +00:00
|
|
|
/// @note Will return nullptr if not found.
|
2017-03-06 18:04:17 +00:00
|
|
|
osg::ref_ptr<ESMTerrain::LandObject> getLand(int x, int y);
|
|
|
|
|
2017-03-07 03:02:06 +00:00
|
|
|
virtual void reportStats(unsigned int frameNumber, osg::Stats* stats) const;
|
2017-03-06 18:04:17 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
int mLoadFlags;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|