diff --git a/src/playerstats.h b/src/playerstats.h deleted file mode 100644 index 6b2475d26d0..00000000000 --- a/src/playerstats.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - This file is part of Warzone 2100. - Copyright (C) 1999-2004 Eidos Interactive - Copyright (C) 2005-2020 Warzone 2100 Project - - Warzone 2100 is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - Warzone 2100 is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Warzone 2100; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -#ifndef __INCLUDED_SRC_PLAYERSTATS_H__ -#define __INCLUDED_SRC_PLAYERSTATS_H__ - -#include "lib/framework/crc.h" -#include -#include - -enum RATING_SOURCE { - RATING_SOURCE_LOCAL, - RATING_SOURCE_HOST -}; - -struct PLAYERSTATS -{ - uint32_t played = 0; /// propagated stats. - uint32_t wins = 0; - uint32_t losses = 0; - uint32_t totalKills = 0; - uint32_t totalScore = 0; - - uint32_t recentKills = 0; // score/kills in last game. - uint32_t recentScore = 0; - uint64_t recentPowerLost = 0; // power lost in last game (i.e. from droids / structures being killed by other players) - - struct Autorating - { - Autorating() = default; - Autorating(nlohmann::json const &json); - - bool valid = false; - bool dummy = false; - bool autohoster = false; - uint8_t star[3] = {0, 0, 0}; - uint8_t medal = 0; - uint8_t level = 0; - std::string elo; - std::string details; - }; - Autorating autorating; - RATING_SOURCE autoratingFrom = RATING_SOURCE_HOST; - - EcKey identity; -}; - -#endif