@ -77,9 +77,8 @@ namespace ESM
void Dialogue::readInfo(ESMReader &esm, bool merge)
{
ESM::DialInfo info;
info.loadId(esm);
bool isDeleted = false;
info.loadData(esm, isDeleted);
info.load(esm, isDeleted);
if (!merge || mInfo.empty())
@ -9,18 +9,9 @@ namespace ESM
unsigned int DialInfo::sRecordId = REC_INFO;
void DialInfo::load(ESMReader &esm, bool &isDeleted)
loadId(esm);
loadData(esm, isDeleted);
}
void DialInfo::loadId(ESMReader &esm)
mId = esm.getHNString("INAM");
void DialInfo::loadData(ESMReader &esm, bool &isDeleted)
isDeleted = false;
mQuestStatus = QS_None;
@ -106,11 +106,7 @@ struct DialInfo
};
void load(ESMReader &esm, bool &isDeleted);
///< Loads all sub-records of Info record
void loadId(ESMReader &esm);
///< Loads only Id of Info record (INAM sub-record)
void loadData(ESMReader &esm, bool &isDeleted);
///< Loads all sub-records of Info record, except INAM sub-record
///< Loads Info record
void save(ESMWriter &esm, bool isDeleted = false) const;