2014-01-14 11:25:35 +00:00
|
|
|
#ifndef OPENMW_ESM_OBJECTSTATE_H
|
|
|
|
#define OPENMW_ESM_OBJECTSTATE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "cellref.hpp"
|
|
|
|
#include "locals.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
// format 0, saved games only
|
|
|
|
|
|
|
|
///< \brief Save state for objects, that do not use custom data
|
|
|
|
struct ObjectState
|
|
|
|
{
|
|
|
|
CellRef mRef;
|
|
|
|
|
|
|
|
unsigned char mHasLocals;
|
|
|
|
Locals mLocals;
|
|
|
|
unsigned char mEnabled;
|
|
|
|
int mCount;
|
|
|
|
ESM::Position mPosition;
|
|
|
|
float mLocalRotation[3];
|
|
|
|
|
|
|
|
void load (ESMReader &esm);
|
2014-01-28 12:49:59 +00:00
|
|
|
void save (ESMWriter &esm, bool inInventory = false) const;
|
2014-01-14 11:25:35 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|