2014-10-08 15:17:31 +00:00
|
|
|
#ifndef CSM_WORLD_LAND_H
|
|
|
|
#define CSM_WORLD_LAND_H
|
|
|
|
|
|
|
|
#include <string>
|
2015-08-31 16:13:27 +00:00
|
|
|
|
2014-10-08 15:17:31 +00:00
|
|
|
#include <components/esm/loadland.hpp>
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
/// \brief Wrapper for Land record. Encodes X and Y cell index in the ID.
|
|
|
|
///
|
|
|
|
/// \todo Add worldspace support to the Land record.
|
2015-08-31 16:13:27 +00:00
|
|
|
struct Land : public ESM::Land
|
2014-10-08 15:17:31 +00:00
|
|
|
{
|
|
|
|
/// Loads the metadata and ID
|
2015-07-21 17:25:43 +00:00
|
|
|
void load (ESM::ESMReader &esm, bool &isDeleted);
|
2017-09-04 05:06:58 +00:00
|
|
|
|
|
|
|
static std::string createUniqueRecordId(int x, int y);
|
|
|
|
static void parseUniqueRecordId(const std::string& id, int& x, int& y);
|
2014-10-08 15:17:31 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|