2012-09-23 18:11:08 +00:00
|
|
|
#ifndef OPENMW_ESM_LTEX_H
|
|
|
|
#define OPENMW_ESM_LTEX_H
|
2010-02-22 13:09:43 +00:00
|
|
|
|
2012-09-17 07:37:50 +00:00
|
|
|
#include <string>
|
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
2010-02-22 13:09:43 +00:00
|
|
|
|
2012-09-30 20:51:54 +00:00
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
2010-02-22 13:09:43 +00:00
|
|
|
/*
|
|
|
|
* Texture used for texturing landscape.
|
2019-03-11 11:05:43 +00:00
|
|
|
* They are indexed by 'num', but still use 'id' to override base records.
|
|
|
|
* Original editor even does not allow to create new records with existing ID's.
|
|
|
|
* TODO: currently OpenMW-CS does not allow to override LTEX records at all.
|
2010-02-22 13:09:43 +00:00
|
|
|
*/
|
|
|
|
|
2012-09-30 19:34:53 +00:00
|
|
|
struct LandTexture
|
2010-02-22 13:09:43 +00:00
|
|
|
{
|
2013-09-24 11:17:28 +00:00
|
|
|
static unsigned int sRecordId;
|
2015-06-14 00:31:00 +00:00
|
|
|
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
|
|
|
|
static std::string getRecordType() { return "LandTexture"; }
|
2013-09-24 11:17:28 +00:00
|
|
|
|
2017-08-25 23:51:30 +00:00
|
|
|
// mId is merely a user friendly name for the texture in the editor.
|
2012-09-30 19:34:53 +00:00
|
|
|
std::string mId, mTexture;
|
2012-09-17 07:37:50 +00:00
|
|
|
int mIndex;
|
2010-02-22 13:09:43 +00:00
|
|
|
|
2015-07-20 14:23:14 +00:00
|
|
|
void load(ESMReader &esm, bool &isDeleted);
|
|
|
|
void save(ESMWriter &esm, bool isDeleted = false) const;
|
2015-07-09 18:45:24 +00:00
|
|
|
|
2017-08-25 23:51:30 +00:00
|
|
|
/// Sets the record to the default state. Does not touch the index. Does touch mID.
|
2015-07-09 18:45:24 +00:00
|
|
|
void blank();
|
2010-02-22 13:09:43 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|