diff --git a/rust-pvz-genetics/src/genetics/mod.rs b/rust-pvz-genetics/src/genetics/mod.rs new file mode 100644 index 0000000..13f71f5 --- /dev/null +++ b/rust-pvz-genetics/src/genetics/mod.rs @@ -0,0 +1,21 @@ +use std::collections::HashMap; + +#[derive(Clone,Copy,PartialEq,Eq)] +pub struct GeneID; + +pub trait Gene {} + +#[derive(Default)] +pub struct PlantGenome { + pub edges: HashMap>, + pub vertices: HashMap> +} + +impl PlantGenome { + pub fn new() -> Self { + Self { + edges: HashMap::new(), + vertices: HashMap::new() + } + } +} diff --git a/rust-pvz-genetics/src/lib.rs b/rust-pvz-genetics/src/lib.rs index e69de29..8bf847c 100644 --- a/rust-pvz-genetics/src/lib.rs +++ b/rust-pvz-genetics/src/lib.rs @@ -0,0 +1 @@ +pub mod genetics;