diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-06 19:56:53 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-06 19:56:53 +0100 |
commit | be0db6761c344a53a13f569a934b33d01eb54147 (patch) | |
tree | 2668dbbab1b2ff9ebc12866d8af48e0bc8b771e5 /src/to_clt/media.rs | |
download | mt_ser-be0db6761c344a53a13f569a934b33d01eb54147.tar.xz |
Initial commit
Diffstat (limited to 'src/to_clt/media.rs')
-rw-r--r-- | src/to_clt/media.rs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/to_clt/media.rs b/src/to_clt/media.rs new file mode 100644 index 0000000..0dd1f3d --- /dev/null +++ b/src/to_clt/media.rs @@ -0,0 +1,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, +} |