n18catalogue 0.1.0

Defines common 18xx tiles.
Documentation
  • Coverage
  • 20.8%
    26 out of 125 items documented4 out of 31 items with examples
  • Size
  • Source code size: 84.34 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 931.98 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 25s Average build duration of successful builds.
  • all releases: 25s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • robmoss/rusty_train
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • robmoss

Provides tile catalogues and defines common tiles as per the 18xx Tile Database.

Overview

This module defines a [Builder] type that assembles tiles into Catalogues, and provides many predefined tiles.

Catalogues define the range of tiles that can be placed on a map, and their availability.

# use n18catalogue::{Availability, Builder, Catalogue, Kind};
// Construct a small catalogue of standard tiles, identified by name.
let tiles = vec![
    (Kind::_3, Availability::Limited(4)),
    (Kind::_208, Availability::Unlimited),
];
let catalogue = Builder::with_tiles(tiles).unwrap().build();