mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 20:19:56 +00:00
21 lines
No EOL
373 B
C++
21 lines
No EOL
373 B
C++
|
|
#include "lightstate.hpp"
|
|
|
|
#include "esmreader.hpp"
|
|
#include "esmwriter.hpp"
|
|
|
|
void ESM::LightState::load (ESMReader &esm)
|
|
{
|
|
ObjectState::load (esm);
|
|
|
|
mTime = 0;
|
|
esm.getHNOT (mTime, "LTIM");
|
|
}
|
|
|
|
void ESM::LightState::save (ESMWriter &esm, bool inInventory) const
|
|
{
|
|
ObjectState::save (esm, inInventory);
|
|
|
|
if (mTime)
|
|
esm.writeHNT ("LTIM", mTime);
|
|
} |