diff options
| author | Darkelarious <github@333networks.com> | 2025-03-08 15:11:53 +0100 |
|---|---|---|
| committer | Darkelarious <github@333networks.com> | 2025-03-08 15:11:53 +0100 |
| commit | 74ff50c5ca343b5829287f6e7ee2b916aa29720e (patch) | |
| tree | 00011aba29c389b17e9a1c538e552fbe1c6e131e /Core/CoreObject/serverinfostructure.h | |
| parent | 920fa82d1e184732205fcbbd96b2143f9503e8e3 (diff) | |
| download | Masterserver-Qt5-74ff50c5ca343b5829287f6e7ee2b916aa29720e.tar.gz Masterserver-Qt5-74ff50c5ca343b5829287f6e7ee2b916aa29720e.zip | |
reorganise files
Sort out code/source files that were mixed with other repository files. No new functional changes.
Diffstat (limited to 'Core/CoreObject/serverinfostructure.h')
| -rw-r--r-- | Core/CoreObject/serverinfostructure.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Core/CoreObject/serverinfostructure.h b/Core/CoreObject/serverinfostructure.h deleted file mode 100644 index 4f86adb..0000000 --- a/Core/CoreObject/serverinfostructure.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef SERVERINFOSTRUCTURE_H -#define SERVERINFOSTRUCTURE_H - -#include <QDateTime> -#include <QHostAddress> - -struct ServerInfo -{ - // server address - QHostAddress ip; - - // server port - unsigned short port = 0; - - // gamename - QString gamename = ""; - - // date that the serverinfo was added or last updated - qint64 time = QDateTime::currentSecsSinceEpoch(); -}; - -// compare operator -inline bool operator== (const ServerInfo serverInfo1, const ServerInfo serverInfo2) -{ - // compare address, port and gamename. ignore time. - return ( serverInfo1.ip.isEqual(serverInfo2.ip) and - serverInfo1.port == serverInfo2.port and - serverInfo1.gamename == serverInfo2.gamename ); -} - -#endif // SERVERINFOSTRUCTURE_H |
