summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml1
-rw-r--r--src/to_srv.rs9
2 files changed, 8 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index af76262..8d26222 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ edition = "2021"
[features]
all = ["client", "server", "random", "serde"]
+test = ["client", "server", "random"]
client = []
random = ["dep:generate-random", "dep:rand"]
serde = ["dep:serde", "dep:serde_arrays", "enumset/serde"]
diff --git a/src/to_srv.rs b/src/to_srv.rs
index 03cb5a4..51b824e 100644
--- a/src/to_srv.rs
+++ b/src/to_srv.rs
@@ -35,8 +35,13 @@ pub enum Interaction {
Activate,
}
-#[mt_derive(to = "srv")]
-pub struct PointedThing; // TODO
+#[mt_derive(to = "srv", repr = "u8", tag = "type")]
+#[mt(const8 = 0)]
+pub enum PointedThing {
+ None = 0,
+ Node { under: [u16; 3], above: [u16; 3] },
+ Obj { obj: u16 },
+}
#[mt_derive(to = "srv", repr = "u16", tag = "type", content = "data")]
pub enum ToSrvPkt {