2014-10-08 17:17:31 +02:00
|
|
|
#ifndef CSM_WORLD_LAND_H
|
|
|
|
#define CSM_WORLD_LAND_H
|
|
|
|
|
|
|
|
#include <string>
|
2015-08-31 18:13:27 +02:00
|
|
|
|
2022-01-22 15:58:41 +01:00
|
|
|
#include <components/esm3/loadland.hpp>
|
2014-10-08 17:17:31 +02:00
|
|
|
|
|
|
|
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 18:13:27 +02:00
|
|
|
struct Land : public ESM::Land
|
2014-10-08 17:17:31 +02:00
|
|
|
{
|
|
|
|
/// Loads the metadata and ID
|
2015-07-21 20:25:43 +03:00
|
|
|
void load (ESM::ESMReader &esm, bool &isDeleted);
|
2017-09-04 01:06:58 -04:00
|
|
|
|
|
|
|
static std::string createUniqueRecordId(int x, int y);
|
|
|
|
static void parseUniqueRecordId(const std::string& id, int& x, int& y);
|
2014-10-08 17:17:31 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|