openmw-tes3coop/components/esm/loadbook.cpp
2012-09-25 21:38:34 +02:00

18 lines
390 B
C++

#include "loadbook.hpp"
namespace ESM
{
void Book::load(ESMReader &esm, const std::string& recordId)
{
model = esm.getHNString("MODL");
name = esm.getHNOString("FNAM");
esm.getHNT(data, "BKDT", 20);
script = esm.getHNOString("SCRI");
icon = esm.getHNOString("ITEX");
text = esm.getHNOString("TEXT");
enchant = esm.getHNOString("ENAM");
id = recordId;
}
}