Big rework
This commit is contained in:
parent
bfce0362b9
commit
ba78ce8502
8 changed files with 67 additions and 53 deletions
27
rust-pvz-genetics/src/genetics/plants/peashooter.rs
Normal file
27
rust-pvz-genetics/src/genetics/plants/peashooter.rs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
use crate::genetics::{gene::{Gene, GenePlace}, genome::Genome};
|
||||
use godot::builtin::Vector2;
|
||||
|
||||
pub fn peashooter_template() -> Genome {
|
||||
Genome::from_edges(vec![
|
||||
Gene::new()
|
||||
], vec![
|
||||
|
||||
])
|
||||
}
|
||||
|
||||
fn get_place_base(place: GenePlace) -> Vector2 {
|
||||
Vector2::ZERO
|
||||
}
|
||||
|
||||
fn get_place_stem(place: GenePlace) -> Vector2 {
|
||||
Vector2::ZERO
|
||||
}
|
||||
|
||||
fn get_place_head(place: GenePlace) -> Vector2 {
|
||||
Vector2::ZERO
|
||||
}
|
||||
|
||||
fn get_place_leaf(place: GenePlace) -> Vector2 {
|
||||
Vector2::ZERO
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue