quakeball-rust/rust/src/lib.rs

22 lines
334 B
Rust

use godot::prelude::*;
mod ui;
struct MyExtension;
#[gdextension]
unsafe impl ExtensionLibrary for MyExtension {}
#[derive(GodotClass)]
#[class(base=Node)]
struct NetworkManager {
base: Base<Node>,
}
#[godot_api]
impl INode for NetworkManager {
fn init(base: Base<Node>) -> Self {
NetworkManager { base }
}
}