diff --git a/src/falling_sand/mod.rs b/src/falling_sand/mod.rs index c09d31d..2d83d59 100644 --- a/src/falling_sand/mod.rs +++ b/src/falling_sand/mod.rs @@ -1,5 +1,5 @@ mod element; -mod rules; +pub mod rules; mod systems; use bevy::{ diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..f831731 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,2 @@ +pub mod falling_sand; +pub mod util; diff --git a/src/main.rs b/src/main.rs index 03c8da7..4c216a1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,11 +1,9 @@ -mod falling_sand; -mod util; - use bevy::{ diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin}, prelude::*, window::PresentMode, }; +use haranae_rs::falling_sand; fn main() { let window_plugin = WindowPlugin {