From 402f7485a5d85b1efc4a76d2c3c80f295e9816a4 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Tue, 14 Feb 2023 16:25:05 +0100 Subject: Implement TileAnim --- src/to_clt/media.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3