2012-09-23 18:11:08 +00:00
|
|
|
#ifndef OPENMW_ESM_DIAL_H
|
|
|
|
#define OPENMW_ESM_DIAL_H
|
2010-02-28 08:18:48 +00:00
|
|
|
|
2010-08-06 13:23:13 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2012-04-08 09:51:52 +00:00
|
|
|
#include "record.hpp"
|
2010-08-06 13:23:13 +00:00
|
|
|
#include "loadinfo.hpp"
|
2010-02-28 08:18:48 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
2010-02-28 08:18:48 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Dialogue topic and journal entries. The actual data is contained in
|
|
|
|
* the INFO records following the DIAL.
|
|
|
|
*/
|
|
|
|
|
2012-09-30 19:34:53 +00:00
|
|
|
struct Dialogue
|
2010-02-28 08:18:48 +00:00
|
|
|
{
|
2011-04-08 13:58:21 +00:00
|
|
|
enum Type
|
2010-02-28 08:18:48 +00:00
|
|
|
{
|
2011-04-08 13:58:21 +00:00
|
|
|
Topic = 0,
|
|
|
|
Voice = 1,
|
|
|
|
Greeting = 2,
|
|
|
|
Persuasion = 3,
|
|
|
|
Journal = 4,
|
|
|
|
Deleted = -1
|
2010-02-28 08:18:48 +00:00
|
|
|
};
|
|
|
|
|
2012-09-30 19:34:53 +00:00
|
|
|
std::string mId;
|
2012-09-17 07:37:50 +00:00
|
|
|
char mType;
|
2011-04-08 13:58:21 +00:00
|
|
|
std::vector<DialInfo> mInfo;
|
2010-02-28 08:18:48 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
void load(ESMReader &esm);
|
2012-04-06 19:04:30 +00:00
|
|
|
void save(ESMWriter &esm);
|
2010-02-28 08:18:48 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|