mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Add functions to read and write ESM::RefId and use them
To be later changed with another implementation.
This commit is contained in:
parent
bf0da418f9
commit
6d261d38dd
68 changed files with 272 additions and 190 deletions
|
@ -55,7 +55,7 @@ namespace ESM
|
|||
|
||||
void Miscellaneous::save(ESMWriter& esm, bool isDeleted) const
|
||||
{
|
||||
esm.writeHNCString("NAME", mId.getRefIdString());
|
||||
esm.writeHNCRefId("NAME", mId);
|
||||
|
||||
if (isDeleted)
|
||||
{
|
||||
|
@ -66,7 +66,7 @@ namespace ESM
|
|||
esm.writeHNCString("MODL", mModel);
|
||||
esm.writeHNOCString("FNAM", mName);
|
||||
esm.writeHNT("MCDT", mData, 12);
|
||||
esm.writeHNOCString("SCRI", mScript.getRefIdString());
|
||||
esm.writeHNOCRefId("SCRI", mScript);
|
||||
esm.writeHNOCString("ITEX", mIcon);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue