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.
27 lines
640 B
C++
27 lines
640 B
C++
#include "metadata.hpp"
|
|
|
|
#include <components/esm/loadtes3.hpp>
|
|
#include <components/esm/esmreader.hpp>
|
|
#include <components/esm/esmwriter.hpp>
|
|
|
|
void CSMWorld::MetaData::blank()
|
|
{
|
|
mFormat = ESM::Header::CurrentFormat;
|
|
mAuthor.clear();
|
|
mDescription.clear();
|
|
}
|
|
|
|
void CSMWorld::MetaData::load (ESM::ESMReader& esm)
|
|
{
|
|
mFormat = esm.getHeader().mFormat;
|
|
mAuthor = esm.getHeader().mData.author.toString();
|
|
mDescription = esm.getHeader().mData.desc.toString();
|
|
}
|
|
|
|
void CSMWorld::MetaData::save (ESM::ESMWriter& esm) const
|
|
{
|
|
esm.setFormat (mFormat);
|
|
esm.setAuthor (mAuthor);
|
|
esm.setDescription (mDescription);
|
|
}
|