2014-10-02 10:30:15 +00:00
|
|
|
#ifndef CSM_WOLRD_PATHGRID_H
|
|
|
|
#define CSM_WOLRD_PATHGRID_H
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <components/esm/loadpgrd.hpp>
|
2015-07-13 07:40:11 +00:00
|
|
|
#include <components/esm/util.hpp>
|
2014-10-02 10:30:15 +00:00
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
2015-02-09 15:50:34 +00:00
|
|
|
struct Cell;
|
2015-02-09 16:25:55 +00:00
|
|
|
template<typename T, typename AT>
|
2015-02-09 15:50:34 +00:00
|
|
|
class IdCollection;
|
|
|
|
|
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;
|
|
|
|
|
2014-10-04 13:36:52 +00:00
|
|
|
void load (ESM::ESMReader &esm, const IdCollection<Cell>& cells);
|
2014-10-02 10:30:15 +00:00
|
|
|
|
2014-10-04 13:36:52 +00:00
|
|
|
void load (ESM::ESMReader &esm);
|
2014-10-02 10:30:15 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2015-07-13 07:40:11 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
template <>
|
|
|
|
bool isRecordDeleted<CSMWorld::Pathgrid>(const CSMWorld::Pathgrid &pgrd)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-11 14:54:45 +00:00
|
|
|
#endif
|