mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 03:32:36 +00:00
3f678c3b0a
This changes a lot of files as a consequence. Still buggy, moving to exterior doesn't bring to the right place yet coc "seyda neen" doesn't work. SO I broke somehting when fetching a cell from a name
32 lines
651 B
C++
32 lines
651 B
C++
#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;
|
|
|
|
RefId mCell;
|
|
CellId mCellId; // The CellId representation for saving/loading
|
|
|
|
std::string mNote;
|
|
|
|
bool operator==(const CustomMarker& other) const
|
|
{
|
|
return mNote == other.mNote && mCell == other.mCell && mWorldX == other.mWorldX && mWorldY == other.mWorldY;
|
|
}
|
|
|
|
void load(ESMReader& reader);
|
|
void save(ESMWriter& writer) const;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|