Fully working wrappers

This commit is contained in:
Rendo 2026-04-05 22:02:45 +05:00
commit a57bdc52d0
5 changed files with 92 additions and 28 deletions

View file

@ -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,
}
}