2010-02-25 13:03:03 +00:00
|
|
|
#ifndef _ESM_PGRD_H
|
|
|
|
#define _ESM_PGRD_H
|
|
|
|
|
|
|
|
#include "esm_reader.hpp"
|
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
2010-02-25 13:03:03 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Path grid.
|
|
|
|
*/
|
|
|
|
struct PathGrid
|
|
|
|
{
|
2011-04-08 13:58:21 +00:00
|
|
|
struct DATAstruct
|
|
|
|
{
|
|
|
|
int x, y; // Grid location, matches cell for exterior cells
|
|
|
|
short s1; // ?? Usually but not always a power of 2. Doesn't seem
|
|
|
|
// to have any relation to the size of PGRC.
|
|
|
|
short s2; // Number of path points? Size of PGRP block is always 16 * s2;
|
|
|
|
}; // 12 bytes
|
2010-02-25 13:03:03 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
std::string cell; // Cell name
|
|
|
|
DATAstruct data;
|
|
|
|
ESM_Context context; // Context so we can return here later and
|
|
|
|
// finish the job
|
2010-02-25 13:03:03 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
void load(ESMReader &esm);
|
2010-02-25 13:03:03 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|