Mercurial > minori
comparison include/core/anime.h @ 202:71832ffe425a
animia: re-add kvm fd source
this is all being merged from my wildly out-of-date laptop. SORRY!
in other news, I edited the CI file to install the wayland client
as well, so the linux CI build might finally get wayland stuff.
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Tue, 02 Jan 2024 06:05:06 -0500 |
| parents | 649786bae914 |
| children | c130f47f6f48 |
comparison
equal
deleted
inserted
replaced
| 201:8f6f8dd2eb23 | 202:71832ffe425a |
|---|---|
| 60 NONE, | 60 NONE, |
| 61 ANILIST, | 61 ANILIST, |
| 62 NB_SERVICES | 62 NB_SERVICES |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 enum class ScoreFormat { | |
| 66 POINT_100, // 0-100 | |
| 67 POINT_10_DECIMAL, // 0.0-10.0 | |
| 68 POINT_10, // 0-10 | |
| 69 POINT_5, // 0-5, should be represented in stars | |
| 70 POINT_3 // 1-3, should be represented in smileys | |
| 71 }; | |
| 72 | |
| 73 constexpr std::array<ScoreFormat, 5> ScoreFormats{ScoreFormat::POINT_100, ScoreFormat::POINT_10_DECIMAL, ScoreFormat::POINT_10, | |
| 74 ScoreFormat::POINT_5, ScoreFormat::POINT_3}; | |
| 75 | |
| 65 struct ListInformation { | 76 struct ListInformation { |
| 66 int id = 0; | 77 int id = 0; |
| 67 int progress = 0; | 78 int progress = 0; |
| 68 int score = 0; | 79 int score = 0; // note that this will ALWAYS be in POINT_100 format and must be converted |
| 69 ListStatus status = ListStatus::NOT_IN_LIST; | 80 ListStatus status = ListStatus::NOT_IN_LIST; |
| 70 Date started; | 81 Date started; |
| 71 Date completed; | 82 Date completed; |
| 72 bool is_private = false; | 83 bool is_private = false; |
| 73 unsigned int rewatched_times = 0; | 84 unsigned int rewatched_times = 0; |
| 101 public: | 112 public: |
| 102 /* User list data */ | 113 /* User list data */ |
| 103 ListStatus GetUserStatus() const; | 114 ListStatus GetUserStatus() const; |
| 104 int GetUserProgress() const; | 115 int GetUserProgress() const; |
| 105 int GetUserScore() const; | 116 int GetUserScore() const; |
| 117 std::string GetUserPresentableScore() const; | |
| 106 Date GetUserDateStarted() const; | 118 Date GetUserDateStarted() const; |
| 107 Date GetUserDateCompleted() const; | 119 Date GetUserDateCompleted() const; |
| 108 bool GetUserIsPrivate() const; | 120 bool GetUserIsPrivate() const; |
| 109 unsigned int GetUserRewatchedTimes() const; | 121 unsigned int GetUserRewatchedTimes() const; |
| 110 bool GetUserIsRewatching() const; | 122 bool GetUserIsRewatching() const; |
