mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 17:19:56 +00:00
24 lines
727 B
C++
24 lines
727 B
C++
#ifndef CSM_WORLD_LANDTEXTURE_H
|
|
#define CSM_WORLD_LANDTEXTURE_H
|
|
|
|
#include <string>
|
|
|
|
#include <components/esm/loadltex.hpp>
|
|
|
|
namespace CSMWorld
|
|
{
|
|
/// \brief Wrapper for LandTexture record, providing info which plugin the LandTexture was loaded from.
|
|
struct LandTexture : public ESM::LandTexture
|
|
{
|
|
int mPluginIndex;
|
|
|
|
void load (ESM::ESMReader &esm, bool &isDeleted);
|
|
|
|
/// 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);
|
|
};
|
|
}
|
|
|
|
#endif
|