#include "loadmisc.hpp" namespace ESM { void Miscellaneous::load(ESMReader &esm) { model = esm.getHNString("MODL"); name = esm.getHNOString("FNAM"); esm.getHNT(data, "MCDT", 12); script = esm.getHNOString("SCRI"); icon = esm.getHNOString("ITEX"); } void Miscellaneous::save(ESMWriter &esm) { esm.writeHNString("MODL", model); esm.writeHNOString("FNAM", name); esm.writeHNT("MCDT", data, 12); esm.writeHNOString("SCRI", script); esm.writeHNOString("ITEX", icon); } }