diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-14 16:25:05 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-14 16:25:05 +0100 |
commit | 402f7485a5d85b1efc4a76d2c3c80f295e9816a4 (patch) | |
tree | 7891fc76e29fbed84c5753cf3dd15d03c249aaea /src/to_clt/media.rs | |
parent | 6c1870c9405a80cb9f08e7fbb2db0b504522e1b2 (diff) | |
download | mt_net-402f7485a5d85b1efc4a76d2c3c80f295e9816a4.tar.xz |
Implement TileAnim
Diffstat (limited to 'src/to_clt/media.rs')
-rw-r--r-- | src/to_clt/media.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/to_clt/media.rs b/src/to_clt/media.rs index 2cd516b..1ec1fd6 100644 --- a/src/to_clt/media.rs +++ b/src/to_clt/media.rs @@ -1,7 +1,17 @@ use super::*; -#[mt_derive(to = "clt")] -pub struct TileAnim; // TODO +#[mt_derive(to = "clt", repr = "u8", tag = "type")] +pub enum TileAnim { + None = 0, + VerticalFrame { + n_frames: [u16; 2], + duration: f32, + }, + SpriteSheet { + aspect_ratio: [u8; 2], + duration: f32, + }, +} #[mt_derive(to = "clt")] pub struct ItemDef; // TODO |