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.
26 lines
452 B
C++
26 lines
452 B
C++
#include "loaddial.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
void Dialogue::load(ESMReader &esm)
|
|
{
|
|
esm.getSubNameIs("DATA");
|
|
esm.getSubHeader();
|
|
int si = esm.getSubSize();
|
|
if (si == 1)
|
|
esm.getT(type);
|
|
else if (si == 4)
|
|
{
|
|
// These are just markers, their values are not used.
|
|
int i;
|
|
esm.getT(i);
|
|
esm.getHNT(i, "DELE");
|
|
type = Deleted;
|
|
}
|
|
else
|
|
esm.fail("Unknown sub record size");
|
|
}
|
|
|
|
}
|