summaryrefslogtreecommitdiff
path: root/src/ship.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ship.rs')
-rw-r--r--src/ship.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ship.rs b/src/ship.rs
index 30a27fb..49da84d 100644
--- a/src/ship.rs
+++ b/src/ship.rs
@@ -19,7 +19,7 @@ impl Mass for Ship {
Ship {
name : String::from(name),
location : location,
- r : 10.0,
+ r : 100.0,
}
}
@@ -38,4 +38,8 @@ impl Mass for Ship {
fn serialize(&self) ->String {
serde_json::to_string(self).unwrap()
}
+
+ fn deserialize(&mut self, data : &str) {
+ //self = serde_json::from_str(data).unwrap();
+ }
}