2014-02-16 11:54:27 +00:00
|
|
|
#ifndef OPENMW_ESM_DIALOGUESTATE_H
|
|
|
|
#define OPENMW_ESM_DIALOGUESTATE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2014-05-27 12:54:29 +00:00
|
|
|
#include <map>
|
2014-02-16 11:54:27 +00:00
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
// format 0, saved games only
|
|
|
|
|
|
|
|
struct DialogueState
|
|
|
|
{
|
2015-01-20 00:28:34 +00:00
|
|
|
// must be lower case topic IDs
|
2014-02-16 11:54:27 +00:00
|
|
|
std::vector<std::string> mKnownTopics;
|
|
|
|
|
2015-01-20 00:28:34 +00:00
|
|
|
// must be lower case faction IDs
|
2015-01-19 22:55:17 +00:00
|
|
|
std::map<std::string, std::map<std::string, int> > mChangedFactionReaction;
|
2014-05-27 12:54:29 +00:00
|
|
|
|
2014-02-16 11:54:27 +00:00
|
|
|
void load (ESMReader &esm);
|
|
|
|
void save (ESMWriter &esm) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2014-05-27 12:54:29 +00:00
|
|
|
#endif
|