2014-10-08 17:17:31 +02:00
|
|
|
#ifndef CSM_WORLD_LANDTEXTURE_H
|
|
|
|
#define CSM_WORLD_LANDTEXTURE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2022-01-22 15:58:41 +01:00
|
|
|
#include <components/esm3/loadltex.hpp>
|
2014-10-08 17:17:31 +02:00
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
2015-08-22 13:10:54 +02:00
|
|
|
/// \brief Wrapper for LandTexture record, providing info which plugin the LandTexture was loaded from.
|
2014-10-08 17:17:31 +02:00
|
|
|
struct LandTexture : public ESM::LandTexture
|
|
|
|
{
|
2015-08-22 13:10:54 +02:00
|
|
|
int mPluginIndex;
|
2014-10-08 17:17:31 +02:00
|
|
|
|
2015-07-21 20:25:43 +03:00
|
|
|
void load (ESM::ESMReader &esm, bool &isDeleted);
|
2017-08-25 19:51:30 -04: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 17:17:31 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|