Fully working wrappers
This commit is contained in:
parent
ba78ce8502
commit
a57bdc52d0
5 changed files with 92 additions and 28 deletions
|
|
@ -2,7 +2,8 @@ use godot::prelude::*;
|
|||
use godot::classes::{Node,INode};
|
||||
|
||||
use crate::genetics::genome::Genome;
|
||||
use crate::genetics::plant_templates::{cherry_bomb_template, peashooter_template, sunflower_template};
|
||||
use crate::genetics::plants::peashooter::peashooter_template;
|
||||
use crate::genetics::plants::sunflower::sunflower_template;
|
||||
|
||||
#[derive(GodotConvert, Var, Export, Default, Clone)]
|
||||
#[godot(via = GString)]
|
||||
|
|
@ -36,7 +37,7 @@ impl INode for GodotGenome {
|
|||
self.genome = match self.from_plant {
|
||||
PlantType::Peashooter => Some(peashooter_template()),
|
||||
PlantType::Sunflower => Some(sunflower_template()),
|
||||
PlantType::CherryBomb => Some(cherry_bomb_template()),
|
||||
PlantType::CherryBomb => Some(peashooter_template()),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue