mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:19:55 +00:00
17 lines
No EOL
303 B
C++
17 lines
No EOL
303 B
C++
|
|
#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);
|
|
} |