summaryrefslogtreecommitdiff
path: root/klangfarbrs
diff options
context:
space:
mode:
authorGrant Shangreaux <grant@unabridgedsoftware.com>2021-10-18 23:27:11 -0500
committerGrant Shangreaux <grant@unabridgedsoftware.com>2021-10-18 23:33:47 -0500
commite1a3b9ad0fca7f3850cda00b03ca05d6c7638217 (patch)
tree45bb9f44ebfa4a1b9c922acc9a237e7cddaf2c50 /klangfarbrs
parent3cb2311d5b9df1d727cf0ddbce255a567a1641e1 (diff)
Clean: remove hello world example code
Diffstat (limited to 'klangfarbrs')
-rw-r--r--klangfarbrs/src/lib.rs22
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>();
}