]> git.lizzy.rs Git - mt_net.git/blob - src/to_clt/media.rs
Implement TileAnim
[mt_net.git] / src / to_clt / media.rs
1 use super::*;
2
3 #[mt_derive(to = "clt", repr = "u8", tag = "type")]
4 pub enum TileAnim {
5     None = 0,
6     VerticalFrame {
7         n_frames: [u16; 2],
8         duration: f32,
9     },
10     SpriteSheet {
11         aspect_ratio: [u8; 2],
12         duration: f32,
13     },
14 }
15
16 #[mt_derive(to = "clt")]
17 pub struct ItemDef; // TODO
18
19 #[mt_derive(to = "clt")]
20 pub struct NodeDef; // TODO
21
22 #[mt_derive(to = "clt", repr = "u8")]
23 pub enum SoundSrcType {
24     Nowhere = 0,
25     Pos,
26     Obj,
27 }