documentation comment

This commit is contained in:
Max Bradbury 2020-08-21 14:48:12 +01:00
parent c4be0861cb
commit 689a89c18c
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,9 @@ use crate::image::animation_frames_from_string;
pub struct Tile {
pub id: String,
pub name: Option<String>,
pub wall: Option<bool>, // this is "optional" in that a tile can have `WAL true|false` or neither
/// this is "optional" in that a tile can have `WAL true`, `WAL false` or neither
/// obviously Some(false) is the same as None but we want to preserve the original formatting
pub wall: Option<bool>,
pub animation_frames: Vec<Image>,
pub colour_id: Option<u64>,
}