summaryrefslogtreecommitdiff
path: root/src/to_clt/media.rs
blob: 1ec1fd6441304e263a7e2dc6fcf51c92a1f7dcd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use super::*;

#[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

#[mt_derive(to = "clt")]
pub struct NodeDef; // TODO

#[mt_derive(to = "clt", repr = "u8")]
pub enum SoundSrcType {
    Nowhere = 0,
    Pos,
    Obj,
}