pub mod coords;
use coords::*;
#[derive(thiserror::Error, Debug)]
pub enum MapError {
#[error("Expected max 256 for map size, got {0}")]
InvalidMapSize(usize),
#[error("Expected coordinate {0} to be less than {1}")]
InvalidCoordinateBounds(String, usize, String, usize),
#[error("T3 Height Map Terrain Dimensions {0:?} do not match Map Info Map Dimensions {1:?}")]
T3HeightDimDoNotMatchMapInfoDim(MapTerrainCoord, MapTerrainCoord),
#[error("Expected at least {0} bytes, got {1} bytes")]
T3HeightNotEnoughBytes(usize, usize),
#[error("Height unit out of bounds should be between 1 and 4, but got: {0}")]
T3HeightUnitOutOfBounds(i32),
#[error("Other Error: {0}")]
Other(String),
}