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."); } }
public TileType(TileType_Code tileCode) { Code = tileCode; }