add ecs architecture

This commit is contained in:
unintendedfraud
2024-02-03 02:26:30 +01:00
parent c4e1455148
commit 689a8d4176
10 changed files with 149 additions and 90 deletions
+13
View File
@@ -0,0 +1,13 @@
mod player_input;
mod map_render;
mod entity_render;
pub use crate::prelude::*;
pub fn build_scheduler() -> Schedule {
return Schedule::builder()
.add_system(player_input::player_input_system())
.add_system(map_render::map_render_system())
.add_system(entity_render::entity_render_system())
.build();
}