A simple map viewer

tile.rs 341B

123456789101112131415161718
  1. use coord::TileCoord;
  2. use tile_source::TileSourceId;
  3. #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
  4. pub struct Tile {
  5. pub coord: TileCoord,
  6. pub source_id: TileSourceId,
  7. }
  8. impl Tile {
  9. pub fn new(coord: TileCoord, source_id: TileSourceId) -> Tile {
  10. Tile {
  11. coord,
  12. source_id,
  13. }
  14. }
  15. }