Exemplo n.º 1
0
 public static EorzeaTerm ToTerm(
     this EorzeaMoon moon)
 => new[]
 {
     EorzeaTerm.Ice,
     EorzeaTerm.Ice,
     EorzeaTerm.Water,
     EorzeaTerm.Water,
     EorzeaTerm.Wind,
     EorzeaTerm.Wind,
     EorzeaTerm.Lightning,
     EorzeaTerm.Lightning,
     EorzeaTerm.Fire,
     EorzeaTerm.Fire,
     EorzeaTerm.Earth,
     EorzeaTerm.Earth,
 }[(int)moon];
Exemplo n.º 2
0
        public static string ToText(
            this EorzeaMoon value,
            EorzeaCalendarLocale locale = EorzeaCalendarLocale.EN)
        => new[, ]
        {
            { "星1月", "1st Astral Moon" },
            { "霊1月", "1st Umbral Moon" },
            { "星2月", "2nd Astral Moon" },
            { "霊2月", "2nd Umbral Moon" },
            { "星3月", "3rd Astral Moon" },
            { "霊3月", "3rd Umbral Moon" },
            { "星4月", "4th Astral Moon" },
            { "霊4月", "4th Umbral Moon" },
            { "星5月", "5th Astral Moon" },
            { "霊5月", "5th Umbral Moon" },
            { "星6月", "6th Astral Moon" },
            { "霊6月", "6th Umbral Moon" },
        }

        [(int)value, (int)locale];