mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00:00
a2c42ab5a2
esm_reader.hpp loadacti.hpp loadalch.hpp loadappa.hpp loadarmo.hpp loadbody.hpp loadbook.hpp loadbsgn.hpp loadcell.hpp loadclas.hpp loadclot.hpp loadland.hpp Updated code style in defs.hpp
29 lines
583 B
C++
29 lines
583 B
C++
#include "loadarmo.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
void PartReferenceList::load(ESMReader &esm)
|
|
{
|
|
while (esm.isNextSub("INDX"))
|
|
{
|
|
PartReference pr;
|
|
esm.getHT(pr.part); // The INDX byte
|
|
pr.male = esm.getHNOString("BNAM");
|
|
pr.female = esm.getHNOString("CNAM");
|
|
}
|
|
}
|
|
|
|
void Armor::load(ESMReader &esm)
|
|
{
|
|
model = esm.getHNString("MODL");
|
|
name = esm.getHNString("FNAM");
|
|
script = esm.getHNOString("SCRI");
|
|
esm.getHNT(data, "AODT", 24);
|
|
icon = esm.getHNOString("ITEX");
|
|
parts.load(esm);
|
|
enchant = esm.getHNOString("ENAM");
|
|
}
|
|
|
|
}
|