MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getMonthDay

Function getMonthDay

src/OpenLoco/src/Date.cpp:156–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 static std::pair<MonthId, uint8_t> getMonthDay(int32_t dayOfYear)
157 {
158 static constexpr std::pair<MonthId, uint8_t> kMonthTable[] = {
159 { MonthId::january, 1 },
160 { MonthId::january, 2 },
161 { MonthId::january, 3 },
162 { MonthId::january, 4 },
163 { MonthId::january, 5 },
164 { MonthId::january, 6 },
165 { MonthId::january, 7 },
166 { MonthId::january, 8 },
167 { MonthId::january, 9 },
168 { MonthId::january, 10 },
169 { MonthId::january, 11 },
170 { MonthId::january, 12 },
171 { MonthId::january, 13 },
172 { MonthId::january, 14 },
173 { MonthId::january, 15 },
174 { MonthId::january, 16 },
175 { MonthId::january, 17 },
176 { MonthId::january, 18 },
177 { MonthId::january, 19 },
178 { MonthId::january, 20 },
179 { MonthId::january, 21 },
180 { MonthId::january, 22 },
181 { MonthId::january, 23 },
182 { MonthId::january, 24 },
183 { MonthId::january, 25 },
184 { MonthId::january, 26 },
185 { MonthId::january, 27 },
186 { MonthId::january, 28 },
187 { MonthId::january, 29 },
188 { MonthId::january, 30 },
189 { MonthId::january, 31 },
190 { MonthId::february, 1 },
191 { MonthId::february, 2 },
192 { MonthId::february, 3 },
193 { MonthId::february, 4 },
194 { MonthId::february, 5 },
195 { MonthId::february, 6 },
196 { MonthId::february, 7 },
197 { MonthId::february, 8 },
198 { MonthId::february, 9 },
199 { MonthId::february, 10 },
200 { MonthId::february, 11 },
201 { MonthId::february, 12 },
202 { MonthId::february, 13 },
203 { MonthId::february, 14 },
204 { MonthId::february, 15 },
205 { MonthId::february, 16 },
206 { MonthId::february, 17 },
207 { MonthId::february, 18 },
208 { MonthId::february, 19 },
209 { MonthId::february, 20 },
210 { MonthId::february, 21 },
211 { MonthId::february, 22 },
212 { MonthId::february, 23 },
213 { MonthId::february, 24 },

Callers 1

calcDateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected