pub fn small_foliage_variant (tile_type : TileType) -> TileType {
		match tile_type {
			TileType::ShortGrass(_i) | TileType::TallGrass(_i) => TileType::ShortGrass(0),
			TileType::SmallMushroom | TileType::LargeMushroom => TileType::SmallMushroom,
			_ => {
				error!("Unknown foliage type {:?}", tile_type);
				panic!("Unknown foliage type {:?}", tile_type);
			}
		}
	}
/// Returns the small variant of a tile type if it is foliage. Panics otherwise.
Returns the small variant of a tile type if it is foliage. Panics otherwise.
Returns the small variant of a tile type if it is foliage . Panics otherwise .
pub fn small_foliage_variant (tile_type : TileType) -> TileType {
		match tile_type {
			TileType::ShortGrass(_i) | TileType::TallGrass(_i) => TileType::ShortGrass(0),
			TileType::SmallMushroom | TileType::LargeMushroom => TileType::SmallMushroom,
			_ => {
				error!("Unknown foliage type {:?}", tile_type);
				panic!("Unknown foliage type {:?}", tile_type);
			}
		}
	}
pub fn small_foliage_variant ( tile_type : TileType ) -> TileType { match tile_type { TileType :: ShortGrass ( _i ) | TileType :: TallGrass ( _i ) => TileType :: ShortGrass ( 0 ) , TileType :: SmallMushroom | TileType :: LargeMushroom => TileType :: SmallMushroom , _ => { error ! ( " " tile_type ) ; panic ! ( " " tile_type ) ; } } }
Returns the small variant of a tile type if it is foliage.
Returns the small variant of a tile type if it is foliage .
tile_type
TileType
tile_type
TileType