Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetLeapMonth() [2/2]

override int System.Globalization.EastAsianLunisolarCalendar.GetLeapMonth ( int year,
int era )
inlinevirtualinherited

Reimplemented from System.Globalization.Calendar.

Definition at line 473 of file EastAsianLunisolarCalendar.cs.

474 {
475 year = CheckYearRange(year, era);
476 int yearInfo = GetYearInfo(year, 0);
477 if (yearInfo <= 0)
478 {
479 return 0;
480 }
481 return yearInfo + 1;
482 }
int GetYearInfo(int LunarYear, int Index)

References System.Globalization.EastAsianLunisolarCalendar.CheckYearRange(), System.Globalization.EastAsianLunisolarCalendar.GetYearInfo(), and System.year.