aboutsummaryrefslogtreecommitdiff
path: root/src/server/cmd/commands/teleport/structure.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/cmd/commands/teleport/structure.rs')
-rw-r--r--src/server/cmd/commands/teleport/structure.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/server/cmd/commands/teleport/structure.rs b/src/server/cmd/commands/teleport/structure.rs
new file mode 100644
index 0000000..8a38c60
--- /dev/null
+++ b/src/server/cmd/commands/teleport/structure.rs
@@ -0,0 +1,24 @@
+// Copyleft (ɔ) 2021-2021 The Whirlsplash Collective
+// SPDX-License-Identifier: GPL-3.0-only
+
+#[derive(Debug)]
+pub struct Teleport {
+ pub room_id: i8,
+ pub exit_type: u8,
+ pub entry_type: u8,
+ pub x: i16,
+ pub y: i16,
+ pub z: i16,
+ pub direction: i16,
+}
+
+#[derive(Debug)]
+pub struct TeleportLiteral {
+ pub room_id: i8,
+ pub exit_type: u8,
+ pub entry_type: u8,
+ pub x: f32,
+ pub y: f32,
+ pub z: f32,
+ pub direction: f32,
+}