1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

29 lines
612 B
C++
Raw Normal View History

#ifndef CSM_WORLD_LAND_H
#define CSM_WORLD_LAND_H
#include <string>
#include <components/esm3/loadland.hpp>
2022-10-19 19:02:00 +02:00
namespace ESM
{
class ESMReader;
}
namespace CSMWorld
{
/// \brief Wrapper for Land record. Encodes X and Y cell index in the ID.
///
/// \todo Add worldspace support to the Land record.
struct Land : public ESM::Land
{
/// Loads the metadata and ID
2022-09-22 21:26:05 +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);
};
}
#endif