1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/opencs/model/world/pathgrid.hpp

30 lines
656 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 <vector>
#include <string>
#include <components/esm/loadpgrd.hpp>
namespace CSMWorld
{
struct Cell;
template<typename T, typename AT>
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
{
std::string mId;
2014-10-04 15:36:52 +02:00
void load (ESM::ESMReader &esm, const IdCollection<Cell>& cells);
2014-10-02 12:30:15 +02:00
2014-10-04 15:36:52 +02:00
void load (ESM::ESMReader &esm);
2014-10-02 12:30:15 +02:00
};
}
2015-03-11 10:54:45 -04:00
#endif