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.
21 lines
373 B
C++
21 lines
373 B
C++
11 years ago
|
|
||
|
#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);
|
||
|
}
|