Genome restructurized
This commit is contained in:
parent
964a8c49ad
commit
23d9ab696c
5 changed files with 109 additions and 20 deletions
13
rust-pvz-genetics/src/genetics/gene.rs
Normal file
13
rust-pvz-genetics/src/genetics/gene.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#[derive(PartialEq,Eq,Clone)]
|
||||
pub struct Gene {
|
||||
pub place: String,
|
||||
pub kind: GeneType
|
||||
}
|
||||
|
||||
#[derive(PartialEq,Eq,Clone)]
|
||||
pub enum GeneType {
|
||||
Producer,
|
||||
Transport,
|
||||
Consumer,
|
||||
Modifier,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue