summaryrefslogtreecommitdiff
path: root/src/to_clt/media.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/to_clt/media.rs')
-rw-r--r--src/to_clt/media.rs33
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,
+}