OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
journalentry.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_JOURNALENTRY_H
2 #define OPENMW_ESM_JOURNALENTRY_H
3 
4 #include <string>
5 
6 namespace ESM
7 {
8  class ESMReader;
9  class ESMWriter;
10 
11  // format 0, saved games only
12 
13  struct JournalEntry
14  {
15  enum Type
16  {
20  };
21 
22  int mType;
23  std::string mTopic;
24  std::string mInfo;
25  std::string mText;
26  std::string mActorName; // Could also be Actor ID to allow switching of localisation, but since mText is plaintext anyway...
27  int mDay; // time stamp
28  int mMonth;
30 
31  void load (ESMReader &esm);
32  void save (ESMWriter &esm) const;
33  };
34 }
35 
36 #endif
std::string mInfo
Definition: journalentry.hpp:24
Definition: esmreader.hpp:21
std::string mActorName
Definition: journalentry.hpp:26
int mMonth
Definition: journalentry.hpp:28
int mType
Definition: journalentry.hpp:22
Definition: journalentry.hpp:17
Type
Definition: journalentry.hpp:15
Definition: esmwriter.hpp:17
int mDayOfMonth
Definition: journalentry.hpp:29
std::string mText
Definition: journalentry.hpp:25
Definition: journalentry.hpp:19
int mDay
Definition: journalentry.hpp:27
std::string mTopic
Definition: journalentry.hpp:23
void save(ESMWriter &esm) const
Definition: journalentry.cpp:23
Definition: journalentry.hpp:13
void load(ESMReader &esm)
Definition: journalentry.cpp:6
Definition: journalentry.hpp:18