Add functions to read and write ESM::RefId and use them

To be later changed with another implementation.
This commit is contained in:
elsid 2023-02-12 19:36:56 +01:00
parent bf0da418f9
commit 6d261d38dd
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
68 changed files with 272 additions and 190 deletions

View file

@ -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);
}