2010-02-28 08:18:48 +00:00
|
|
|
#ifndef _ESM_DIAL_H
|
|
|
|
#define _ESM_DIAL_H
|
|
|
|
|
2010-08-06 13:23:13 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2010-02-28 08:18:48 +00:00
|
|
|
#include "esm_reader.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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct Dialogue
|
|
|
|
{
|
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
|
|
|
};
|
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
char type;
|
|
|
|
std::vector<DialInfo> mInfo;
|
2010-02-28 08:18:48 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
void load(ESMReader &esm);
|
2010-02-28 08:18:48 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|