You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
911 B
C++
39 lines
911 B
C++
#ifndef OPENMW_ESM_STAT_H
|
|
#define OPENMW_ESM_STAT_H
|
|
|
|
#include <string>
|
|
|
|
namespace ESM {
|
|
|
|
class ESMReader;
|
|
class ESMWriter;
|
|
|
|
/*
|
|
* Definition of static object.
|
|
*
|
|
* A stat record is basically just a reference to a nif file. Some
|
|
* esps seem to contain copies of the STAT entries from the esms, and
|
|
* the esms themselves contain several identical entries. Perhaps all
|
|
* statics referenced in a file is also put in the file? Since we are
|
|
* only reading files it doesn't much matter to us, but it would if we
|
|
* were writing our own ESM/ESPs. You can check some files later when
|
|
* you decode the CELL blocks, if you want to test this hypothesis.
|
|
*/
|
|
|
|
struct Static
|
|
{
|
|
static unsigned int sRecordId;
|
|
|
|
std::string mId, mModel;
|
|
|
|
bool mPersistent;
|
|
|
|
void load(ESMReader &esm);
|
|
void save(ESMWriter &esm) const;
|
|
|
|
void blank();
|
|
///< Set record to default state (does not touch the ID).
|
|
};
|
|
}
|
|
#endif
|