aboutsummaryrefslogblamecommitdiffstats
path: root/rust/src/lib.rs
blob: 79583952adf75a46298fd6163614515480d0c180 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                  
         






                                                       
                                                    



                                                              
mod game;
mod spinning_cube;
mod test;

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>();
    handle.add_class::<test::SpinningCubeReverse>();
}

// macros that create the entry-points of the dynamic library.
godot_init!(init);