mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
made object state polymorphic
This commit is contained in:
parent
a623f03850
commit
e0537a3253
2 changed files with 7 additions and 3 deletions
|
@ -47,3 +47,5 @@ void ESM::ObjectState::save (ESMWriter &esm, bool inInventory) const
|
||||||
esm.writeHNT ("LROT", mLocalRotation, 12);
|
esm.writeHNT ("LROT", mLocalRotation, 12);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ESM::ObjectState::~ObjectState() {}
|
|
@ -26,8 +26,10 @@ namespace ESM
|
||||||
ESM::Position mPosition;
|
ESM::Position mPosition;
|
||||||
float mLocalRotation[3];
|
float mLocalRotation[3];
|
||||||
|
|
||||||
void load (ESMReader &esm);
|
virtual void load (ESMReader &esm);
|
||||||
void save (ESMWriter &esm, bool inInventory = false) const;
|
virtual void save (ESMWriter &esm, bool inInventory = false) const;
|
||||||
|
|
||||||
|
virtual ~ObjectState();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue