Mercurial > minori
annotate include/core/anime_db.h @ 9:5c0397762b53
INCOMPLETE: megacommit :)
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 10 Sep 2023 03:59:16 -0400 |
| parents | |
| children | 4b198a111713 |
| rev | line source |
|---|---|
| 9 | 1 #ifndef __core__anime_db_h |
| 2 #define __core__anime_db_h | |
| 3 #include <unordered_map> | |
| 4 | |
| 5 namespace Anime { | |
| 6 | |
| 7 class Anime; | |
| 8 | |
| 9 class Database { | |
| 10 public: | |
| 11 std::unordered_map<int, Anime> items; | |
| 12 int GetTotalAnimeAmount(); | |
| 13 int GetTotalEpisodeAmount(); | |
| 14 int GetTotalWatchedAmount(); | |
| 15 int GetTotalPlannedAmount(); | |
| 16 double GetAverageScore(); | |
| 17 double GetScoreDeviation(); | |
| 18 }; | |
| 19 | |
| 20 inline Database db; | |
| 21 | |
| 22 } // namespace Anime | |
| 23 #endif // __core__anime_db_h |
