Wrapping test

This commit is contained in:
rendo 2026-04-02 10:53:43 +05:00
commit ea0c1357cf
3 changed files with 19 additions and 1 deletions

View file

@ -14,7 +14,7 @@ pub enum PlantType {
#[derive(GodotClass)] #[derive(GodotClass)]
#[class(base=Node)] #[class(base=Node)]
struct GodotGenome { pub struct GodotGenome {
#[export] #[export]
from_plant: PlantType, from_plant: PlantType,
genome: Genome, genome: Genome,

View file

@ -1 +1,2 @@
pub mod godot_genome; pub mod godot_genome;
pub mod plant;

View file

@ -0,0 +1,17 @@
use godot::prelude::*;
use godot::classes::{Node2D,INode2D};
use crate::wrapper::godot_genome::GodotGenome;
#[derive(GodotClass)]
#[class(init,base=Node2D)]
pub struct Plant {
#[export]
genome_path: NodePath,
}
#[godot_api]
impl INode2D for Plant {
fn ready(&mut self) {
}
}