use godot::prelude::*; #[derive(GodotClass)] #[class(base=Resource, init, tool)] pub struct MapResource { #[export] pub name: GString, #[export] pub scene: Option>, base: Base, } #[godot_api] impl IResource for MapResource { fn to_string(&self) -> GString { "Hello there".to_gstring() } fn setup_local_to_scene(&mut self) {} fn reset_state(&mut self) {} }