You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
394 B

#pragma once
#include "common.h"
#include <vector>
class RankList
{
private:
std::vector<PlayerMsg> m_msg;
const std::string m_rankfile = "retro";
const int MAX_RANK = 10;
public:
RankList();
void SaveMsg(PlayerMsg msg);
std::vector<PlayerMsg> getRankList();
void SaveToRank();
private:
void WriteTime(PlayerMsg& msg);
void ReadFile();
void WriteFile();
};