Reorganize project to workspace

This commit is contained in:
Tony Klink 2024-04-01 20:51:39 -06:00
parent 92c0278ef0
commit 960e2f8a37
Signed by: klink
GPG key ID: 85175567C4D19231
39 changed files with 4420 additions and 1189 deletions

View file

@ -0,0 +1,12 @@
[package]
name = "khors-window"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
khors-core = { path = "../../khors-core", version = "0.1.0" }
anyhow = "1.0.80"
flax = { version = "0.6.2", features = ["derive", "serde", "tokio", "tracing"] }

View 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(())
}
}