Files
2026-11-05 11:35:31 -07:00

22 lines
457 B
C++

#include "cellgrid.hpp"
#include "reader.hpp"
void ESM4::readPathingCell(Reader& reader, ESM::FormId& worldSpaceId, CellGrid& cellGrid)
{
reader.getFormId(worldSpaceId);
if (worldSpaceId.mIndex != 0)
{
Grid grid;
reader.get(grid.y); // NOTE: reverse order
reader.get(grid.x);
cellGrid = grid;
}
else
{
ESM::FormId cellId;
reader.getFormId(cellId);
cellGrid = cellId;
}
}