forked from mirror/openmw-tes3mp
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
492 B
C++
27 lines
492 B
C++
#include "custommarkerstate.hpp"
|
|
|
|
#include "esmwriter.hpp"
|
|
#include "esmreader.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
void CustomMarker::save(ESM::ESMWriter &esm) const
|
|
{
|
|
esm.writeHNT("POSX", mWorldX);
|
|
esm.writeHNT("POSY", mWorldY);
|
|
mCell.save(esm);
|
|
if (!mNote.empty())
|
|
esm.writeHNString("NOTE", mNote);
|
|
}
|
|
|
|
void CustomMarker::load(ESM::ESMReader &esm)
|
|
{
|
|
esm.getHNT(mWorldX, "POSX");
|
|
esm.getHNT(mWorldY, "POSY");
|
|
mCell.load(esm);
|
|
mNote = esm.getHNOString("NOTE");
|
|
}
|
|
|
|
}
|