godot-rust starter for client

This commit is contained in:
2024-06-23 16:35:13 -04:00
Unverified
parent 35ff3670ad
commit d6a35b4c04
10 changed files with 219 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
[package]
name = "realmchat_client"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib"] # Compile this crate to a dynamic C library.
[dependencies]
godot = { git = "https://github.com/godot-rust/gdext", branch = "master" }

View File

@@ -0,0 +1,10 @@
use godot::prelude::*;
struct MyExtension;
#[gdextension]
unsafe impl ExtensionLibrary for MyExtension {}
pub fn add(left: usize, right: usize) -> usize {
left + right
}