diff --git a/ranklist.h b/ranklist.h new file mode 100644 index 0000000..589ecae --- /dev/null +++ b/ranklist.h @@ -0,0 +1,23 @@ +#pragma once + +#include "common.h" +#include + +class RankList +{ +private: + std::vector m_msg; + const std::string m_rankfile = "retro"; + const int MAX_RANK = 10; +public: + RankList(); + + void SaveMsg(PlayerMsg msg); + std::vector getRankList(); + void SaveToRank(); + +private: + void WriteTime(PlayerMsg& msg); + void ReadFile(); + void WriteFile(); +};