mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 15:49:56 +00:00
26 lines
602 B
C++
26 lines
602 B
C++
#include "loadligh.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
void Light::load(ESMReader &esm)
|
|
{
|
|
model = esm.getHNString("MODL");
|
|
name = esm.getHNOString("FNAM");
|
|
icon = esm.getHNOString("ITEX");
|
|
assert(sizeof(data) == 24);
|
|
esm.getHNT(data, "LHDT", 24);
|
|
script = esm.getHNOString("SCRI");
|
|
sound = esm.getHNOString("SNAM");
|
|
}
|
|
void Light::save(ESMWriter &esm)
|
|
{
|
|
esm.writeHNString("MODL", model);
|
|
esm.writeHNOString("FNAM", name);
|
|
esm.writeHNOString("ITEX", icon);
|
|
esm.writeHNT("LHDT", data, 24);
|
|
esm.writeHNOString("SCRI", script);
|
|
esm.writeHNOString("SNAM", sound);
|
|
}
|
|
|
|
}
|