diff options
author | LawnCable <git@lawncable.net> | 2022-04-15 08:37:02 +0200 |
---|---|---|
committer | LawnCable <git@lawncable.net> | 2022-04-15 08:37:02 +0200 |
commit | 3e3f9d016e09493a37ae5935cecddb5a315350a6 (patch) | |
tree | b4627f1a0b530fbf781f61a74239ef0ac3e28730 /src/lowlevel/layer.rs | |
parent | ec09c0ae43799846a68a4e100a68353730edfed1 (diff) | |
download | fast-tiled.rs-3e3f9d016e09493a37ae5935cecddb5a315350a6.tar.gz fast-tiled.rs-3e3f9d016e09493a37ae5935cecddb5a315350a6.tar.bz2 fast-tiled.rs-3e3f9d016e09493a37ae5935cecddb5a315350a6.tar.xz fast-tiled.rs-3e3f9d016e09493a37ae5935cecddb5a315350a6.zip |
more progress
Diffstat (limited to 'src/lowlevel/layer.rs')
-rw-r--r-- | src/lowlevel/layer.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lowlevel/layer.rs b/src/lowlevel/layer.rs new file mode 100644 index 0000000..ebb6cae --- /dev/null +++ b/src/lowlevel/layer.rs @@ -0,0 +1,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>), +} |