2013-03-22 04:50:54 +00:00
|
|
|
#ifndef OPENMW_ESM_PROBE_H
|
|
|
|
#define OPENMW_ESM_PROBE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
struct Probe
|
|
|
|
{
|
2013-09-24 11:17:28 +00:00
|
|
|
static unsigned int sRecordId;
|
2015-06-14 00:31:00 +00:00
|
|
|
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
|
|
|
|
static std::string getRecordType() { return "Probe"; }
|
2013-09-24 11:17:28 +00:00
|
|
|
|
2013-03-22 04:50:54 +00:00
|
|
|
struct Data
|
|
|
|
{
|
|
|
|
float mWeight;
|
|
|
|
int mValue;
|
|
|
|
|
|
|
|
float mQuality;
|
|
|
|
int mUses;
|
|
|
|
}; // Size = 16
|
|
|
|
|
|
|
|
Data mData;
|
|
|
|
std::string mId, mName, mModel, mIcon, mScript;
|
|
|
|
|
2015-07-20 14:23:14 +00:00
|
|
|
void load(ESMReader &esm, bool &isDeleted);
|
|
|
|
void save(ESMWriter &esm, bool isDeleted = false) const;
|
2013-05-06 12:10:43 +00:00
|
|
|
|
|
|
|
void blank();
|
|
|
|
///< Set record to default state (does not touch the ID).
|
2013-03-22 04:50:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif
|