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;
            }
        }