Mercurial > minori
comparison include/core/anime.h @ 413:192da585a0a8 default tip
*: fix formatting
the clang-format file was broken andjust using LLVM defaults.
now it's fixed and is more in line with what I actually prefer my
code to look like -- esp. with regards to tabulators
| author | Paper <paper@tflc.us> |
|---|---|
| date | Sat, 25 Jul 2026 14:54:32 -0400 |
| parents | 47c9f8502269 |
| children |
comparison
equal
deleted
inserted
replaced
| 412:05aed03e0111 | 413:192da585a0a8 |
|---|---|
| 19 Dropped, | 19 Dropped, |
| 20 Planning, | 20 Planning, |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 constexpr std::array<ListStatus, 5> ListStatuses{ | 23 constexpr std::array<ListStatus, 5> ListStatuses{ |
| 24 ListStatus::Current, ListStatus::Completed, ListStatus::Paused, ListStatus::Dropped, ListStatus::Planning, | 24 ListStatus::Current, |
| 25 ListStatus::Completed, | |
| 26 ListStatus::Paused, | |
| 27 ListStatus::Dropped, | |
| 28 ListStatus::Planning, | |
| 25 }; | 29 }; |
| 26 | 30 |
| 27 enum class SeriesStatus { | 31 enum class SeriesStatus { |
| 28 Unknown = 0, | 32 Unknown = 0, |
| 29 Finished, | 33 Finished, |
| 32 Cancelled, | 36 Cancelled, |
| 33 Hiatus, | 37 Hiatus, |
| 34 }; | 38 }; |
| 35 | 39 |
| 36 constexpr std::array<SeriesStatus, 6> SeriesStatuses{ | 40 constexpr std::array<SeriesStatus, 6> SeriesStatuses{ |
| 37 SeriesStatus::Unknown, SeriesStatus::Finished, SeriesStatus::Releasing, | 41 SeriesStatus::Unknown, |
| 38 SeriesStatus::NotYetReleased, SeriesStatus::Cancelled, SeriesStatus::Hiatus, | 42 SeriesStatus::Finished, |
| 43 SeriesStatus::Releasing, | |
| 44 SeriesStatus::NotYetReleased, | |
| 45 SeriesStatus::Cancelled, | |
| 46 SeriesStatus::Hiatus, | |
| 39 }; | 47 }; |
| 40 | 48 |
| 41 enum class SeriesFormat { | 49 enum class SeriesFormat { |
| 42 Unknown = 0, | 50 Unknown = 0, |
| 43 Tv, | 51 Tv, |
| 48 Ona, | 56 Ona, |
| 49 Music, | 57 Music, |
| 50 }; | 58 }; |
| 51 | 59 |
| 52 constexpr std::array<SeriesFormat, 8> SeriesFormats{ | 60 constexpr std::array<SeriesFormat, 8> SeriesFormats{ |
| 53 SeriesFormat::Unknown, SeriesFormat::Tv, SeriesFormat::TvShort, SeriesFormat::Movie, | 61 SeriesFormat::Unknown, |
| 54 SeriesFormat::Special, SeriesFormat::Ova, SeriesFormat::Ona, SeriesFormat::Music, | 62 SeriesFormat::Tv, |
| 63 SeriesFormat::TvShort, | |
| 64 SeriesFormat::Movie, | |
| 65 SeriesFormat::Special, | |
| 66 SeriesFormat::Ova, | |
| 67 SeriesFormat::Ona, | |
| 68 SeriesFormat::Music, | |
| 55 }; | 69 }; |
| 56 | 70 |
| 57 enum class TitleLanguage { | 71 enum class TitleLanguage { |
| 58 Romaji, | 72 Romaji, |
| 59 Native, | 73 Native, |
| 60 English, | 74 English, |
| 61 }; | 75 }; |
| 62 | 76 |
| 63 constexpr std::array<TitleLanguage, 3> TitleLanguages{ | 77 constexpr std::array<TitleLanguage, 3> TitleLanguages{ |
| 64 TitleLanguage::Romaji, | 78 TitleLanguage::Romaji, |
| 65 TitleLanguage::Native, | 79 TitleLanguage::Native, |
| 66 TitleLanguage::English, | 80 TitleLanguage::English, |
| 67 }; | 81 }; |
| 68 | 82 |
| 69 enum class Service { | 83 enum class Service { |
| 70 None, | 84 None, |
| 71 AniList, | 85 AniList, |
| 74 }; | 88 }; |
| 75 | 89 |
| 76 /* this doesn't include MAL and Kitsu because they aren't really | 90 /* this doesn't include MAL and Kitsu because they aren't really |
| 77 * "valid" services yet. */ | 91 * "valid" services yet. */ |
| 78 constexpr std::array<Service, 3> Services{ | 92 constexpr std::array<Service, 3> Services{ |
| 79 Service::AniList, | 93 Service::AniList, |
| 80 Service::MyAnimeList, | 94 Service::MyAnimeList, |
| 81 Service::Kitsu, | 95 Service::Kitsu, |
| 82 }; | 96 }; |
| 83 | 97 |
| 84 enum class ScoreFormat { | 98 enum class ScoreFormat { |
| 85 Point100, // 0-100 | 99 Point100, // 0-100 |
| 86 Point10Decimal, // 0.0-10.0 | 100 Point10Decimal, // 0.0-10.0 |
| 88 Point5, // 0-5, should be represented in stars | 102 Point5, // 0-5, should be represented in stars |
| 89 Point3, // 1-3, should be represented in smileys | 103 Point3, // 1-3, should be represented in smileys |
| 90 }; | 104 }; |
| 91 | 105 |
| 92 constexpr std::array<ScoreFormat, 5> ScoreFormats{ | 106 constexpr std::array<ScoreFormat, 5> ScoreFormats{ |
| 93 ScoreFormat::Point100, ScoreFormat::Point10Decimal, ScoreFormat::Point10, ScoreFormat::Point5, ScoreFormat::Point3, | 107 ScoreFormat::Point100, |
| 108 ScoreFormat::Point10Decimal, | |
| 109 ScoreFormat::Point10, | |
| 110 ScoreFormat::Point5, | |
| 111 ScoreFormat::Point3, | |
| 94 }; | 112 }; |
| 95 | 113 |
| 96 struct ListInformation { | 114 struct ListInformation { |
| 97 std::string id; | 115 std::string id; |
| 98 int progress = 0; | 116 int progress = 0; |
