summaryrefslogtreecommitdiff
path: root/src/mass.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mass.rs')
-rw-r--r--src/mass.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mass.rs b/src/mass.rs
index 0a49dc6..71723cd 100644
--- a/src/mass.rs
+++ b/src/mass.rs
@@ -6,7 +6,12 @@ pub trait Mass : Any {
fn location(&self) -> (f64, f64, f64);
fn set_location(&mut self, location : (f64, f64, f64));
fn serialize(&self) -> String;
- fn deserialize(&mut self, data : &str);
+}
+
+#[derive(Serialize, Deserialize, Debug)]
+pub enum Type {
+ Ship,
+ Astroid,
}
downcast!(Mass);