summaryrefslogtreecommitdiff
path: root/src/to_clt/media.rs
blob: 0dd1f3d6281c4fc22be5685785cb32c47bf6dbac (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
28
29
30
31
32
33
use super::*;

#[mt_derive(to = "clt")]
pub struct MediaAnnounce {
    pub name: String,
    pub base64_sha1: String,
}

#[mt_derive(to = "clt")]
pub struct MediaPayload {
    pub name: String,
    #[mt(len32)]
    pub data: Vec<u8>,
}

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

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

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

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

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