1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:59:56 +00:00
openmw/components/esm3/globalmap.hpp

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

42 lines
811 B
C++
Raw Normal View History

2014-01-25 17:20:17 +00:00
#ifndef OPENMW_COMPONENTS_ESM_GLOBALMAP_H
#define OPENMW_COMPONENTS_ESM_GLOBALMAP_H
#include <cstdint>
#include <set>
2014-01-25 17:20:17 +00:00
#include <vector>
2022-06-04 14:07:59 +00:00
#include "components/esm/defs.hpp"
2014-01-25 17:20:17 +00: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 14:34:23 +00:00
constexpr static RecNameInts sRecordId = REC_GMAP;
2022-06-04 14:07:59 +00:00
2014-01-25 17:20:17 +00:00
// The minimum and maximum cell coordinates
struct Bounds
{
int32_t mMinX, mMaxX, mMinY, mMaxY;
2014-01-25 17:20:17 +00:00
};
Bounds mBounds;
std::vector<char> mImageData;
typedef std::pair<int, int> CellId;
std::set<CellId> mMarkers;
2014-01-25 17:20:17 +00:00
void load(ESMReader& esm);
void save(ESMWriter& esm) const;
};
}
#endif