initial commit
This commit is contained in:
commit
98e8cc418b
5 changed files with 24 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/target
|
10
Cargo.toml
Normal file
10
Cargo.toml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[package]
|
||||||
|
name = "rail_network"
|
||||||
|
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" }
|
0
README.md
Normal file
0
README.md
Normal file
12
src/lib.rs
Normal file
12
src/lib.rs
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
mod rail_graph;
|
||||||
|
|
||||||
|
mod prelude {
|
||||||
|
pub use godot::prelude::*;
|
||||||
|
}
|
||||||
|
|
||||||
|
use prelude::*;
|
||||||
|
|
||||||
|
struct RailNetworkExtension;
|
||||||
|
|
||||||
|
#[gdextension]
|
||||||
|
unsafe impl ExtensionLibrary for RailNetworkExtension {}
|
1
src/rail_graph.rs
Normal file
1
src/rail_graph.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use crate::prelude::*;
|
Loading…
Add table
Add a link
Reference in a new issue