2015-03-08 19:44:41 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_ESM_TRANSPORT_H
|
|
|
|
#define OPENMW_COMPONENTS_ESM_TRANSPORT_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2024-02-27 19:47:46 +00:00
|
|
|
#include <components/esm/position.hpp>
|
2015-03-08 19:44:41 +00:00
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
/// List of travel service destination. Shared by CREA and NPC_ records.
|
|
|
|
struct Transport
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Dest
|
|
|
|
{
|
|
|
|
Position mPos;
|
2023-01-19 16:31:45 +00:00
|
|
|
std::string mCellName;
|
2015-03-08 19:44:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
std::vector<Dest> mList;
|
|
|
|
|
|
|
|
/// Load one destination, assumes the subrecord name was already read
|
|
|
|
void add(ESMReader& esm);
|
|
|
|
|
|
|
|
void save(ESMWriter& esm) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|