1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 21:40:03 +00:00
OpenMW/apps/opencs/model/world/pathgrid.hpp

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

34 lines
733 B
C++
Raw Normal View History

2014-10-02 12:30:15 +02:00
#ifndef CSM_WOLRD_PATHGRID_H
#define CSM_WOLRD_PATHGRID_H
#include <string>
#include <components/esm/refid.hpp>
#include <components/esm3/loadpgrd.hpp>
2014-10-02 12:30:15 +02:00
2022-10-19 19:02:00 +02:00
namespace ESM
{
class ESMReader;
}
2014-10-02 12:30:15 +02:00
namespace CSMWorld
{
struct Cell;
template <typename T>
class IdCollection;
2014-10-02 12:30:15 +02:00
/// \brief Wrapper for Pathgrid record
///
/// \attention The mData.mX and mData.mY fields of the ESM::Pathgrid struct are not used.
/// Exterior cell coordinates are encoded in the pathgrid ID.
struct Pathgrid : public ESM::Pathgrid
{
ESM::RefId mId;
2014-10-02 12:30:15 +02:00
void load(ESM::ESMReader& esm, bool& isDeleted, const IdCollection<Cell>& cells);
void load(ESM::ESMReader& esm, bool& isDeleted);
2014-10-02 12:30:15 +02:00
};
}
2015-03-11 10:54:45 -04:00
#endif