diff options
-rw-r--r-- | klangfarbrs/src/lib.rs | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/klangfarbrs/src/lib.rs b/klangfarbrs/src/lib.rs index 0da53b2..eb7f027 100644 --- a/klangfarbrs/src/lib.rs +++ b/klangfarbrs/src/lib.rs @@ -1,25 +1,6 @@ use gdnative::api::Resource; use gdnative::prelude::*; -/// The HelloWorld "class" -#[derive(NativeClass)] -#[inherit(Node)] -pub struct HelloWorld; - -#[methods] -impl HelloWorld { - fn new(_owner: &Node) -> Self { - HelloWorld - } - - #[export] - fn _ready(&self, _owner: &Node) { - // The `godot_print!` macro works like `println!` but prints to the Godot-editor - // output tab as well. - godot_print!("Hello, world!"); - } -} - #[derive(NativeClass)] #[inherit(Node)] pub struct Synth { @@ -137,8 +118,7 @@ pub mod test { // Function that registers all exposed classes to Godot fn init(handle: InitHandle) { - // Register the new `HelloWorld` type we just declared. - handle.add_class::<HelloWorld>(); + // Register the `Synth` type we declared. handle.add_class::<Synth>(); } |