1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
OpenMW/components/esm/loadrace.cpp
2012-04-06 21:04:30 +02:00

22 lines
395 B
C++

#include "loadrace.hpp"
namespace ESM
{
void Race::load(ESMReader &esm)
{
name = esm.getHNString("FNAM");
esm.getHNT(data, "RADT", 140);
powers.load(esm);
description = esm.getHNOString("DESC");
}
void Race::save(ESMWriter &esm)
{
esm.writeHNString("FNAM", name);
esm.writeHNT("RADT", data, 140);
powers.save(esm);
esm.writeHNOString("DESC", description);
}
}