summaryrefslogtreecommitdiff
path: root/src/lowlevel/layer.rs
blob: ebb6cae6d0dc9ef39f193c148410e1036079c8a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub struct LayerTile {
    /// Global Tile Id
    pub gid: u32,
}

pub struct LayerChunk {
    pub x: u32,
    pub y: u32,
    pub width: u32,
    pub height: u32,
    pub data: Vec<LayerTile>,
}

pub enum LayerData {
    Tiles(Vec<LayerTile>),
    Chunks(Vec<LayerChunk>),
}