openmw/components/esm/loadglob.cpp

29 lines
526 B
C++
Raw Normal View History

#include "loadglob.hpp"
#include "esmreader.hpp"
#include "esmwriter.hpp"
2012-09-17 11:37:50 +04:00
namespace ESM
{
void Global::load(ESMReader &esm)
2013-02-28 11:50:29 +01:00
{
mValue.read (esm, ESM::Variant::Format_Global);
2013-02-28 11:50:29 +01:00
}
void Global::save(ESMWriter &esm)
{
mValue.write (esm, ESM::Variant::Format_Global);
}
2012-12-03 22:16:02 +01:00
void Global::blank()
{
mValue.setType (ESM::VT_None);
2012-12-03 22:16:02 +01:00
}
bool operator== (const Global& left, const Global& right)
{
return left.mId==right.mId && left.mValue==right.mValue;
}
}