From e1a3b9ad0fca7f3850cda00b03ca05d6c7638217 Mon Sep 17 00:00:00 2001 From: Grant Shangreaux Date: Mon, 18 Oct 2021 23:27:11 -0500 Subject: Clean: remove hello world example code --- klangfarbrs/src/lib.rs | 22 +--------------------- 1 file changed, 1 insertion(+), 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::(); + // Register the `Synth` type we declared. handle.add_class::(); } -- cgit v1.2.3