mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Refactor components/esm4
This commit is contained in:
parent
e6cffa5494
commit
5d54ca6fdb
182 changed files with 721 additions and 903 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue