mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
31 lines
563 B
C++
31 lines
563 B
C++
|
#include "loadprob.hpp"
|
||
|
|
||
|
#include "esmreader.hpp"
|
||
|
#include "esmwriter.hpp"
|
||
|
|
||
|
namespace ESM
|
||
|
{
|
||
|
|
||
|
void Probe::load(ESMReader &esm)
|
||
|
{
|
||
|
mModel = esm.getHNString("MODL");
|
||
|
mName = esm.getHNString("FNAM");
|
||
|
|
||
|
esm.getHNT(mData, "PBDT", 16);
|
||
|
|
||
|
mScript = esm.getHNOString("SCRI");
|
||
|
mIcon = esm.getHNOString("ITEX");
|
||
|
}
|
||
|
|
||
|
void Probe::save(ESMWriter &esm)
|
||
|
{
|
||
|
esm.writeHNCString("MODL", mModel);
|
||
|
esm.writeHNCString("FNAM", mName);
|
||
|
|
||
|
esm.writeHNT("PBDT", mData, 16);
|
||
|
esm.writeHNOString("SCRI", mScript);
|
||
|
esm.writeHNOCString("ITEX", mIcon);
|
||
|
}
|
||
|
|
||
|
}
|