2015-01-18 23:35:19 +00:00
|
|
|
#ifndef OPENMW_ESM_CUSTOMMARKERSTATE_H
|
|
|
|
#define OPENMW_ESM_CUSTOMMARKERSTATE_H
|
|
|
|
|
2023-02-22 22:20:15 +00:00
|
|
|
#include <components/esm/refid.hpp>
|
2015-01-18 23:35:19 +00:00
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
2023-02-22 22:20:15 +00:00
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
2015-01-18 23:35:19 +00:00
|
|
|
|
|
|
|
// format 0, saved games only
|
|
|
|
struct CustomMarker
|
|
|
|
{
|
|
|
|
float mWorldX;
|
|
|
|
float mWorldY;
|
|
|
|
|
2023-02-19 16:42:37 +00:00
|
|
|
RefId mCell;
|
2015-01-18 23:35:19 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2022-04-11 22:18:39 +00:00
|
|
|
void load(ESMReader& reader);
|
|
|
|
void save(ESMWriter& writer) const;
|
2015-01-18 23:35:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|