Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CloudLevel != 0)
            {
                hash ^= CloudLevel.GetHashCode();
            }
            if (RainLevel != 0)
            {
                hash ^= RainLevel.GetHashCode();
            }
            if (WindLevel != 0)
            {
                hash ^= WindLevel.GetHashCode();
            }
            if (SnowLevel != 0)
            {
                hash ^= SnowLevel.GetHashCode();
            }
            if (FogLevel != 0)
            {
                hash ^= FogLevel.GetHashCode();
            }
            if (WindDirection != 0)
            {
                hash ^= WindDirection.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
 /// <summary>
 /// Show the top altitude of clouds for the selected cloud level on the image.
 /// </summary>
 /// <param name="cl">The cloud level to use (low, mid, or high).</param>
 /// <returns></returns>
 public static string CloudTopAltitude(CloudLevel cl)
 {
     return "presclt " + (char)cl.GetHashCode();
 }
Exemple #3
0
 /// <summary>
 /// Show the cloud cover for the selected cloud level on the image.
 /// </summary>
 /// <param name="cl">The cloud level to use (low, mid, or high).</param>
 /// <param name="contour">If set to <c>true</c> a contour chart will be drawn rather than a shaded chart.</param>
 /// <returns></returns>
 public static string CloudCover(CloudLevel cl, bool contour = false)
 {
     return (contour ? "tccc " : "tcc ") + (char) cl.GetHashCode();
 }