Beispiel #1
0
        /// <summary>
        ///     Gets the color of the ward circle.
        /// </summary>
        /// <param name="w">The ward.</param>
        /// <returns></returns>
        private static Color GetWardColor(WardTypeWrapper w)
        {
            var colour = Color.Chartreuse;

            switch (w.WardType)
            {
            case WardType.Green:
                colour = Color.Chartreuse;
                break;

            case WardType.Pink:
                colour = Color.DarkMagenta;
                break;

            case WardType.Trinket:
            case WardType.TrinketUpgrade:
                colour = Color.Yellow;
                break;

            case WardType.TeemoShroom:
            case WardType.ShacoBox:
                colour = Color.DarkRed;
                break;
            }
            return(colour);
        }
 /// <summary>
 ///     Gets or sets the text render object.
 /// </summary>
 /// <value>
 ///     The text object.
 /// </value>
 /// <summary>
 ///     Initializes a new instance of the <see cref="Ward" /> class.
 /// </summary>
 /// <param name="wrapper">The wrapper.</param>
 public Ward(WardTypeWrapper wrapper)
 {
     WardTypeW = wrapper;
 }