AStarXNA.GridCell.GetColor C# (CSharp) Метод

GetColor() приватный Метод

private GetColor ( GridCellType type ) : Color
type GridCellType
Результат Color
        Color GetColor(GridCellType type)
        {
            switch (type)
            {
                case GridCellType.Walkable: return Color.Gray;
                case GridCellType.Unwalkable: return Color.Black;
                case GridCellType.Source: return Color.Green;
                case GridCellType.Destination: return Color.Red;
                case GridCellType.Path: return Color.Yellow;
                default: return Color.CornflowerBlue;
            }
        }