1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 12:39:55 +00:00
OpenMW/components/esm3/globalmap.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
788 B
C++
Raw Normal View History

2014-01-25 18:20:17 +01:00
#ifndef OPENMW_COMPONENTS_ESM_GLOBALMAP_H
#define OPENMW_COMPONENTS_ESM_GLOBALMAP_H
#include <set>
2014-01-25 18:20:17 +01:00
#include <vector>
2022-06-04 16:07:59 +02:00
#include "components/esm/defs.hpp"
2014-01-25 18:20:17 +01:00
namespace ESM
{
class ESMReader;
class ESMWriter;
// format 0, saved games only
///< \brief An image containing the explored areas on the global map.
struct GlobalMap
{
2022-06-04 16:34:23 +02:00
constexpr static RecNameInts sRecordId = REC_GMAP;
2022-06-04 16:07:59 +02:00
2014-01-25 18:20:17 +01:00
// The minimum and maximum cell coordinates
struct Bounds
{
int mMinX, mMaxX, mMinY, mMaxY;
};
Bounds mBounds;
std::vector<char> mImageData;
typedef std::pair<int, int> CellId;
std::set<CellId> mMarkers;
2014-01-25 18:20:17 +01:00
void load(ESMReader& esm);
void save(ESMWriter& esm) const;
};
}
#endif