2014-01-14 11:25:35 +00:00
|
|
|
#ifndef OPENMW_ESM_CELLID_H
|
|
|
|
#define OPENMW_ESM_CELLID_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
struct CellId
|
|
|
|
{
|
|
|
|
struct CellIndex
|
|
|
|
{
|
|
|
|
int mX;
|
|
|
|
int mY;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::string mWorldspace;
|
|
|
|
CellIndex mIndex;
|
|
|
|
bool mPaged;
|
|
|
|
|
2016-07-02 17:48:11 +00:00
|
|
|
static const std::string sDefaultWorldspace;
|
|
|
|
|
2014-01-14 11:25:35 +00:00
|
|
|
void load(ESMReader& esm);
|
|
|
|
void save(ESMWriter& esm) const;
|
|
|
|
};
|
2014-02-23 20:39:18 +00:00
|
|
|
|
|
|
|
bool operator==(const CellId& left, const CellId& right);
|
|
|
|
bool operator!=(const CellId& left, const CellId& right);
|
2015-07-17 18:49:10 +00:00
|
|
|
bool operator<(const CellId& left, const CellId& right);
|
2014-01-14 11:25:35 +00:00
|
|
|
}
|
|
|
|
|
2015-03-11 14:54:45 +00:00
|
|
|
#endif
|