1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 03:29:55 +00:00

Maybe load FO4 note records

This commit is contained in:
Alexei Kotov 2023-08-16 12:12:30 +03:00
parent cfa19cf719
commit 32f8d08dd3
2 changed files with 17 additions and 1 deletions

View file

@ -53,8 +53,16 @@ void ESM4::Note::load(ESM4::Reader& reader)
case ESM4::SUB_ICON:
reader.getZString(mIcon);
break;
case ESM4::SUB_DATA:
case ESM4::SUB_MODB:
reader.get(mBoundRadius);
break;
case ESM4::SUB_YNAM:
reader.getFormId(mPickUpSound);
break;
case ESM4::SUB_ZNAM:
reader.getFormId(mDropSound);
break;
case ESM4::SUB_DATA:
case ESM4::SUB_MODT: // Model data
case ESM4::SUB_MODC:
case ESM4::SUB_MODS:
@ -64,6 +72,9 @@ void ESM4::Note::load(ESM4::Reader& reader)
case ESM4::SUB_TNAM:
case ESM4::SUB_XNAM:
case ESM4::SUB_OBND:
case ESM4::SUB_VMAD:
case ESM4::SUB_DNAM: // FO4
case ESM4::SUB_PNAM: // FO4
case ESM4::SUB_PTRN: // FO4
reader.skipSubRecordData();
break;

View file

@ -48,6 +48,11 @@ namespace ESM4
std::string mModel;
std::string mIcon;
float mBoundRadius;
ESM::FormId mPickUpSound;
ESM::FormId mDropSound;
void load(ESM4::Reader& reader);
// void save(ESM4::Writer& writer) const;