2020-09-13 23:37:55 +01:00
|
|
|
#pragma once
|
2018-09-24 17:02:50 +01:00
|
|
|
#ifndef MAPCONNECTION_H
|
|
|
|
#define MAPCONNECTION_H
|
|
|
|
|
|
|
|
#include <QString>
|
2019-01-15 22:06:18 +00:00
|
|
|
#include <QHash>
|
2018-09-24 17:02:50 +01:00
|
|
|
|
|
|
|
class MapConnection {
|
|
|
|
public:
|
|
|
|
QString direction;
|
|
|
|
QString offset;
|
|
|
|
QString map_name;
|
|
|
|
};
|
|
|
|
|
2019-01-15 22:06:18 +00:00
|
|
|
inline bool operator==(const MapConnection &c1, const MapConnection &c2) {
|
|
|
|
return c1.map_name == c2.map_name;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline uint qHash(const MapConnection &key) {
|
|
|
|
return qHash(key.map_name);
|
|
|
|
}
|
|
|
|
|
2018-09-24 17:02:50 +01:00
|
|
|
#endif // MAPCONNECTION_H
|