rephrase hello world example
@@ -114,10 +114,10 @@ impl HelloWorld {
HelloWorld
}
- // In order to make a method known to Godot, the #[export] attribute has to be used.
- // In Godot script-classes do not actually inherit the parent class.
- // Instead they are"attached" to the parent object, called the "owner".
- // The owner is passed to every single exposed method.
+ // In order to enable access, the owner is passed as the second argument
+ // to every single exposed method. As a result, all exposed methods
+ // MUST have `owner: BaseClass` as their second arguments,
+ // before all other arguments in the signature.
#[export]
fn _ready(&self, _owner: Node) {
// The `godot_print!` macro works like `println!` but prints to the Godot-editor
