1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 05:23:53 +00:00
openmw/components/esm3/custommarkerstate.hpp

33 lines
635 B
C++
Raw Normal View History

#ifndef OPENMW_ESM_CUSTOMMARKERSTATE_H
#define OPENMW_ESM_CUSTOMMARKERSTATE_H
#include <components/esm/refid.hpp>
namespace ESM
{
class ESMReader;
class ESMWriter;
2022-09-22 18:26:05 +00:00
// format 0, saved games only
struct CustomMarker
{
float mWorldX;
float mWorldY;
RefId mCell;
2022-09-22 18:26:05 +00:00
std::string mNote;
2022-09-22 18:26:05 +00:00
bool operator==(const CustomMarker& other) const
{
return mNote == other.mNote && mCell == other.mCell && mWorldX == other.mWorldX && mWorldY == other.mWorldY;
}
2022-09-22 18:26:05 +00:00
void load(ESMReader& reader);
void save(ESMWriter& writer) const;
};
}
#endif