public static Color LookupColor( Terrain terrain, Color notFoundColor ) { switch ( terrain.ID ) { case 0: return Color.DarkKhaki; case 1: return Color.ForestGreen; case 2: return Color.Brown; case 3: return Color.Gold; case 4: return Color.OliveDrab; case 5: return Color.RoyalBlue; case 6: return Color.SkyBlue; case 7: return Color.Red; case 8: return Color.AntiqueWhite; default: return notFoundColor; } }
public static Color LookupColor( Terrain terrain ) { return LookupColor( terrain, System.Drawing.Color.Black ); }