1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 04:53:52 +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.

32 lines
767 B
C++
Raw Normal View History

2014-10-02 10:30:15 +00:00
#ifndef CSM_WOLRD_PATHGRID_H
#define CSM_WOLRD_PATHGRID_H
#include <vector>
#include <string>
#include <components/esm3/loadpgrd.hpp>
2014-10-02 10:30:15 +00:00
namespace CSMWorld
{
struct Cell;
template<typename T, typename AT>
class IdCollection;
2022-08-19 17:19:42 +00:00
template<typename ESXRecordT>
struct IdAccessor;
2014-10-02 10:30:15 +00: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
{
std::string mId;
void load (ESM::ESMReader &esm, bool &isDeleted, const IdCollection<Cell, IdAccessor<Cell> >& cells);
void load (ESM::ESMReader &esm, bool &isDeleted);
2014-10-02 10:30:15 +00:00
};
}
2015-03-11 14:54:45 +00:00
#endif