OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
spelllist.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_SPELLLIST_H
2 #define OPENMW_ESM_SPELLLIST_H
3 
4 #include <vector>
5 #include <string>
6 
7 namespace ESM
8 {
9  class ESMReader;
10  class ESMWriter;
11 
16  struct SpellList
17  {
18  std::vector<std::string> mList;
19 
21  bool exists(const std::string& spell) const;
22 
24  void add(ESMReader &esm);
25 
26  void save(ESMWriter &esm) const;
27  };
28 }
29 
30 #endif
31 
Definition: esmreader.hpp:21
void save(ESMWriter &esm) const
Definition: spelllist.cpp:13
Definition: esmwriter.hpp:17
Definition: spelllist.hpp:16
std::vector< std::string > mList
Definition: spelllist.hpp:18
void add(ESMReader &esm)
Load one spell, assumes the subrecord name was already read.
Definition: spelllist.cpp:8
bool exists(const std::string &spell) const
Is this spell ID in mList?
Definition: spelllist.cpp:20