2014-10-08 15:17:31 +00:00
|
|
|
#ifndef CSM_WORLD_LANDTEXTURE_H
|
|
|
|
#define CSM_WORLD_LANDTEXTURE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2022-01-22 14:58:41 +00:00
|
|
|
#include <components/esm3/loadltex.hpp>
|
2014-10-08 15:17:31 +00:00
|
|
|
|
2022-10-19 17:02:00 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
}
|
|
|
|
|
2014-10-08 15:17:31 +00:00
|
|
|
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
|