You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
572 B
C++
24 lines
572 B
C++
#ifndef CSM_WORLD_LAND_H
|
|
#define CSM_WORLD_LAND_H
|
|
|
|
#include <string>
|
|
|
|
#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.
|
|
struct Land : public ESM::Land
|
|
{
|
|
/// Loads the metadata and ID
|
|
void load (ESM::ESMReader &esm, bool &isDeleted);
|
|
|
|
static std::string createUniqueRecordId(int x, int y);
|
|
static void parseUniqueRecordId(const std::string& id, int& x, int& y);
|
|
};
|
|
}
|
|
|
|
#endif
|