2014-10-08 15:17:31 +00:00
|
|
|
#ifndef CSM_WORLD_LANDTEXTURE_H
|
|
|
|
#define CSM_WORLD_LANDTEXTURE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <components/esm/loadltex.hpp>
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
2015-08-22 11:10:54 +00:00
|
|
|
/// \brief Wrapper for LandTexture record, providing info which plugin the LandTexture was loaded from.
|
2014-10-08 15:17:31 +00:00
|
|
|
struct LandTexture : public ESM::LandTexture
|
|
|
|
{
|
2015-08-22 11:10:54 +00:00
|
|
|
int mPluginIndex;
|
2014-10-08 15:17:31 +00:00
|
|
|
|
2015-07-21 17:25:43 +00:00
|
|
|
void load (ESM::ESMReader &esm, bool &isDeleted);
|
2017-08-25 23:51:30 +00:00
|
|
|
|
|
|
|
/// Returns a string identifier that will be unique to any LandTexture.
|
|
|
|
static std::string createUniqueRecordId(int plugin, int index);
|
|
|
|
/// Deconstructs a unique string identifier into plugin and index.
|
|
|
|
static void parseUniqueRecordId(const std::string& id, int& plugin, int& index);
|
2014-10-08 15:17:31 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|