diff options
Diffstat (limited to '')
-rw-r--r-- | rust/src/lib.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rust/src/lib.rs b/rust/src/lib.rs new file mode 100644 index 0000000..1cc766a --- /dev/null +++ b/rust/src/lib.rs @@ -0,0 +1,13 @@ +mod game; +mod spinning_cube; + +use gdnative::prelude::{godot_init, InitHandle}; + +// Function that registers all exposed classes to Godot +fn init(handle: InitHandle) { + handle.add_class::<game::Game>(); + handle.add_class::<spinning_cube::SpinningCube>(); +} + +// macros that create the entry-points of the dynamic library. +godot_init!(init); |