|
|
|
@ -70,7 +70,7 @@ void Pathgrid::load(ESMReader &esm)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
void Pathgrid::save(ESMWriter &esm)
|
|
|
|
|
void Pathgrid::save(ESMWriter &esm) const
|
|
|
|
|
{
|
|
|
|
|
esm.writeHNT("DATA", mData, 12);
|
|
|
|
|
esm.writeHNCString("NAME", mCell);
|
|
|
|
@ -78,7 +78,7 @@ void Pathgrid::save(ESMWriter &esm)
|
|
|
|
|
if (!mPoints.empty())
|
|
|
|
|
{
|
|
|
|
|
esm.startSubRecord("PGRP");
|
|
|
|
|
for (PointList::iterator it = mPoints.begin(); it != mPoints.end(); ++it)
|
|
|
|
|
for (PointList::const_iterator it = mPoints.begin(); it != mPoints.end(); ++it)
|
|
|
|
|
{
|
|
|
|
|
esm.writeT(*it);
|
|
|
|
|
}
|
|
|
|
@ -88,7 +88,7 @@ void Pathgrid::save(ESMWriter &esm)
|
|
|
|
|
if (!mEdges.empty())
|
|
|
|
|
{
|
|
|
|
|
esm.startSubRecord("PGRC");
|
|
|
|
|
for (std::vector<Edge>::iterator it = mEdges.begin(); it != mEdges.end(); ++it)
|
|
|
|
|
for (std::vector<Edge>::const_iterator it = mEdges.begin(); it != mEdges.end(); ++it)
|
|
|
|
|
{
|
|
|
|
|
esm.writeT(it->mV1);
|
|
|
|
|
}
|
|
|
|
|