Example #1
0
    public static TileType_Obstacle ObstaclePropertyOf(TileType_Code code)
    {
        TileType_Obstacle output;

        if (obstacleDictionary.TryGetValue(code, out output))
        {
            return(output);
        }
        else
        {
            throw new ArgumentException("Entered key does not exist in dictionary.");
        }
    }
Example #2
0
 public TileType(TileType_Code tileCode)
 {
     Code = tileCode;
 }