Mercurial > minori
annotate src/core/anime_season.cc @ 326:10096c5489e3
anime/db: refactor anime_season_db out
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 13 Jun 2024 00:42:00 -0400 |
parents | e66ffc338d82 |
children | b5d6c27c308f |
rev | line source |
---|---|
281 | 1 #include "core/anime_season.h" |
2 | |
3 namespace Anime { | |
4 | |
5 SeriesSeason GetSeasonForMonth(Date::Month month) { | |
6 switch (month) { | |
7 case Date::Month::Jan: case Date::Month::Feb: case Date::Month::Mar: | |
284
e66ffc338d82
anime: refactor title structure to a map
Paper <paper@paper.us.eu.org>
parents:
281
diff
changeset
|
8 default: |
281 | 9 return SeriesSeason::Winter; |
10 case Date::Month::Apr: case Date::Month::May: case Date::Month::Jun: | |
11 return SeriesSeason::Spring; | |
12 case Date::Month::Jul: case Date::Month::Aug: case Date::Month::Sep: | |
13 return SeriesSeason::Summer; | |
14 case Date::Month::Oct: case Date::Month::Nov: case Date::Month::Dec: | |
15 return SeriesSeason::Fall; | |
16 } | |
17 } | |
18 | |
19 } |