You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
715 B
C++
30 lines
715 B
C++
#ifndef OPENCS_RENDER_TERRAINSTORAGE_H
|
|
#define OPENCS_RENDER_TERRAINSTORAGE_H
|
|
|
|
#include <components/esmterrain/storage.hpp>
|
|
|
|
#include "../../model/world/data.hpp"
|
|
|
|
namespace CSVRender
|
|
{
|
|
|
|
/**
|
|
* @brief A bridge between the terrain component and OpenCS's terrain data storage.
|
|
*/
|
|
class TerrainStorage : public ESMTerrain::Storage
|
|
{
|
|
public:
|
|
TerrainStorage(const CSMWorld::Data& data);
|
|
private:
|
|
const CSMWorld::Data& mData;
|
|
|
|
virtual const ESM::Land* getLand (int cellX, int cellY);
|
|
virtual const ESM::LandTexture* getLandTexture(int index, short plugin);
|
|
|
|
virtual void getBounds(float& minX, float& maxX, float& minY, float& maxY);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|