OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
transport.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_ESM_TRANSPORT_H
2 #define OPENMW_COMPONENTS_ESM_TRANSPORT_H
3 
4 #include <string>
5 #include <vector>
6 
7 #include "defs.hpp"
8 
9 namespace ESM
10 {
11 
12  class ESMReader;
13  class ESMWriter;
14 
16  struct Transport
17  {
18 
19  struct Dest
20  {
22  std::string mCellName;
23  };
24 
25  std::vector<Dest> mList;
26 
28  void add(ESMReader &esm);
29 
30  void save(ESMWriter &esm) const;
31 
32  };
33 
34 }
35 
36 #endif
std::vector< Dest > mList
Definition: transport.hpp:25
std::string mCellName
Definition: transport.hpp:22
Definition: esmreader.hpp:21
Definition: transport.hpp:19
List of travel service destination. Shared by CREA and NPC_ records.
Definition: transport.hpp:16
Definition: esmwriter.hpp:17
void add(ESMReader &esm)
Load one destination, assumes the subrecord name was already read.
Definition: transport.cpp:9
Definition: defs.hpp:38
void save(ESMWriter &esm) const
Definition: transport.cpp:23
Position mPos
Definition: transport.hpp:21