#include "metadata.hpp" #include #include #include void CSMWorld::MetaData::blank() { // ESM::Header::CurrentFormat is `1` but since new records are not yet used in opencs // we use the format `0` for compatibility with old versions. mFormat = 0; mAuthor.clear(); mDescription.clear(); } void CSMWorld::MetaData::load(ESM::ESMReader& esm) { mFormat = esm.getHeader().mFormat; mAuthor = esm.getHeader().mData.author; mDescription = esm.getHeader().mData.desc; } void CSMWorld::MetaData::save(ESM::ESMWriter& esm) const { esm.setFormat(mFormat); esm.setAuthor(mAuthor); esm.setDescription(mDescription); }