Refactor components/esm4

This commit is contained in:
Petr Mikheev 2023-07-30 21:55:36 +02:00
parent e6cffa5494
commit 5d54ca6fdb
182 changed files with 721 additions and 903 deletions

View file

@ -28,18 +28,17 @@
#include <stdexcept>
#include "formid.hpp" // FIXME: for workaround
#include "reader.hpp"
#include <components/esm/refid.hpp> // FIXME: for workaround
//#include "writer.hpp"
void ESM4::Road::load(ESM4::Reader& reader)
{
mFormId = reader.hdr().record.getFormId();
reader.adjustFormId(mFormId);
mId = reader.getFormIdFromHeader();
mFlags = reader.hdr().record.flags;
mParent = reader.currWorld();
mEditorId = formIdToString(mFormId); // FIXME: quick workaround to use existing code
mEditorId = ESM::RefId(mId).serializeText(); // FIXME: quick workaround to use existing code
while (reader.getSubRecordHeader())
{