Reorganize project to workspace
This commit is contained in:
parent
92c0278ef0
commit
960e2f8a37
39 changed files with 4420 additions and 1189 deletions
34
modules/khors-window/src/lib.rs
Normal file
34
modules/khors-window/src/lib.rs
Normal file
|
@ -0,0 +1,34 @@
|
|||
use flax::{Schedule, World};
|
||||
use khors_core::module::Module;
|
||||
|
||||
|
||||
pub struct WindowModule {
|
||||
}
|
||||
|
||||
impl WindowModule {
|
||||
pub fn new(
|
||||
schedule: &mut Schedule,
|
||||
_world: &mut World,
|
||||
_events: &mut khors_core::events::Events,
|
||||
) -> Self {
|
||||
let schedule_r = Schedule::builder()
|
||||
.build();
|
||||
schedule.append(schedule_r);
|
||||
Self {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Module for WindowModule {
|
||||
fn on_update(
|
||||
&mut self,
|
||||
_world: &mut World,
|
||||
_events: &mut khors_core::events::Events,
|
||||
_frame_time: std::time::Duration,
|
||||
) -> anyhow::Result<()> {
|
||||
// println!("WindowModule on_update");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue