mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Maybe load FO4 note records
This commit is contained in:
parent
cfa19cf719
commit
32f8d08dd3
2 changed files with 17 additions and 1 deletions
|
@ -53,8 +53,16 @@ void ESM4::Note::load(ESM4::Reader& reader)
|
||||||
case ESM4::SUB_ICON:
|
case ESM4::SUB_ICON:
|
||||||
reader.getZString(mIcon);
|
reader.getZString(mIcon);
|
||||||
break;
|
break;
|
||||||
case ESM4::SUB_DATA:
|
|
||||||
case ESM4::SUB_MODB:
|
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_MODT: // Model data
|
||||||
case ESM4::SUB_MODC:
|
case ESM4::SUB_MODC:
|
||||||
case ESM4::SUB_MODS:
|
case ESM4::SUB_MODS:
|
||||||
|
@ -64,6 +72,9 @@ void ESM4::Note::load(ESM4::Reader& reader)
|
||||||
case ESM4::SUB_TNAM:
|
case ESM4::SUB_TNAM:
|
||||||
case ESM4::SUB_XNAM:
|
case ESM4::SUB_XNAM:
|
||||||
case ESM4::SUB_OBND:
|
case ESM4::SUB_OBND:
|
||||||
|
case ESM4::SUB_VMAD:
|
||||||
|
case ESM4::SUB_DNAM: // FO4
|
||||||
|
case ESM4::SUB_PNAM: // FO4
|
||||||
case ESM4::SUB_PTRN: // FO4
|
case ESM4::SUB_PTRN: // FO4
|
||||||
reader.skipSubRecordData();
|
reader.skipSubRecordData();
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -48,6 +48,11 @@ namespace ESM4
|
||||||
std::string mModel;
|
std::string mModel;
|
||||||
std::string mIcon;
|
std::string mIcon;
|
||||||
|
|
||||||
|
float mBoundRadius;
|
||||||
|
|
||||||
|
ESM::FormId mPickUpSound;
|
||||||
|
ESM::FormId mDropSound;
|
||||||
|
|
||||||
void load(ESM4::Reader& reader);
|
void load(ESM4::Reader& reader);
|
||||||
// void save(ESM4::Writer& writer) const;
|
// void save(ESM4::Writer& writer) const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue