1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00
OpenMW/components/esm3/transport.hpp

36 lines
637 B
C++
Raw Normal View History

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