gdnative 0.11.3

The Godot game engine's gdnative bindings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use gdnative::prelude::*;

#[derive(NativeClass)]
struct Foo<'a> {
    bar: &'a str,
}

impl<'a> Foo<'a> {
    fn new(_owner: &Node) -> Self {
        Foo {
            bar: "bar",
        }
    }
}

fn main() {}