2015-01-18 23:35:19 +00:00
|
|
|
#ifndef OPENMW_ESM_CUSTOMMARKERSTATE_H
|
|
|
|
#define OPENMW_ESM_CUSTOMMARKERSTATE_H
|
|
|
|
|
|
|
|
#include "cellid.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
|
|
|
// format 0, saved games only
|
|
|
|
struct CustomMarker
|
|
|
|
{
|
|
|
|
float mWorldX;
|
|
|
|
float mWorldY;
|
|
|
|
|
|
|
|
ESM::CellId mCell;
|
|
|
|
|
|
|
|
std::string mNote;
|
|
|
|
|
2019-06-16 12:41:34 +00:00
|
|
|
bool operator == (const CustomMarker& other) const
|
2015-01-18 23:35:19 +00:00
|
|
|
{
|
|
|
|
return mNote == other.mNote && mCell == other.mCell && mWorldX == other.mWorldX && mWorldY == other.mWorldY;
|
|
|
|
}
|
|
|
|
|
|
|
|
void load (ESM::ESMReader& reader);
|
|
|
|
void save (ESM::ESMWriter& writer) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|