Reorganize project to workspace
This commit is contained in:
parent
92c0278ef0
commit
960e2f8a37
39 changed files with 4420 additions and 1189 deletions
12
modules/khors-window/Cargo.toml
Normal file
12
modules/khors-window/Cargo.toml
Normal 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"] }
|
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