28 lines
529 B
C++
28 lines
529 B
C++
#pragma once
|
|
#ifndef MAPCONNECTION_H
|
|
#define MAPCONNECTION_H
|
|
|
|
#include <QString>
|
|
#include <QHash>
|
|
|
|
class Map;
|
|
|
|
class MapConnection {
|
|
public:
|
|
QString direction;
|
|
int offset;
|
|
QString map_name;
|
|
};
|
|
|
|
struct MapConnectionMirror {
|
|
MapConnection * connection = nullptr;
|
|
Map * map = nullptr;
|
|
};
|
|
|
|
inline bool operator==(const MapConnection &c1, const MapConnection &c2) {
|
|
return c1.direction == c2.direction &&
|
|
c1.offset == c2.offset &&
|
|
c1.map_name == c2.map_name;
|
|
}
|
|
|
|
#endif // MAPCONNECTION_H
|