You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
303 B
C++
17 lines
303 B
C++
11 years ago
|
|
||
|
#include "cellstate.hpp"
|
||
|
|
||
|
#include "esmreader.hpp"
|
||
|
#include "esmwriter.hpp"
|
||
|
|
||
|
void ESM::CellState::load (ESMReader &esm)
|
||
|
{
|
||
|
mWaterLevel = 0;
|
||
|
esm.getHNOT (mWaterLevel, "WLVL");
|
||
|
}
|
||
|
|
||
|
void ESM::CellState::save (ESMWriter &esm) const
|
||
|
{
|
||
|
if (!mId.mPaged)
|
||
|
esm.writeHNT ("WLVL", mWaterLevel);
|
||
|
}
|