summaryrefslogtreecommitdiff
path: root/src/ship.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ship.rs')
-rw-r--r--src/ship.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ship.rs b/src/ship.rs
new file mode 100644
index 0000000..fd55ca9
--- /dev/null
+++ b/src/ship.rs
@@ -0,0 +1,12 @@
+#[derive(Serialize, Deserialize, Debug)]
+pub struct Ship {
+ pub location : (isize, isize, isize)
+}
+
+impl Ship {
+ pub fn new() -> Ship {
+ Ship {
+ location : (0,0,0)
+ }
+ }
+}