1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00
OpenMW/components/esm/loaddial.hpp

39 lines
607 B
C++
Raw Normal View History

2012-09-23 22:11:08 +04:00
#ifndef OPENMW_ESM_DIAL_H
#define OPENMW_ESM_DIAL_H
2010-08-06 15:23:13 +02:00
#include <vector>
#include "record.hpp"
2010-08-06 15:23:13 +02:00
#include "loadinfo.hpp"
namespace ESM
{
/*
* Dialogue topic and journal entries. The actual data is contained in
* the INFO records following the DIAL.
*/
struct Dialogue : public Record
{
enum Type
{
Topic = 0,
Voice = 1,
Greeting = 2,
Persuasion = 3,
Journal = 4,
Deleted = -1
};
2012-09-17 11:37:50 +04:00
char mType;
std::vector<DialInfo> mInfo;
void load(ESMReader &esm);
void save(ESMWriter &esm);
int getName() { return REC_DIAL; }
};
}
#endif