Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
Eveheeero committed Nov 24, 2023
1 parent 7924c63 commit a7e9015
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
3 changes: 0 additions & 3 deletions ht-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ name = "ht-core"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["dylib"]

[dependencies]
bevy = { version = "*" }
3 changes: 1 addition & 2 deletions ht-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use bevy::prelude::*;

#[derive(DynamicPlugin)]
struct SamplePlugin;
pub struct SamplePlugin;

impl Plugin for SamplePlugin {
fn build(&self, app: &mut App) {
Expand Down
4 changes: 4 additions & 0 deletions ht/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ uuid = { version = "1.3.3", features = ["fast-rng", "v4"] }
[dependencies.bevy]
version = "*"
features = ["dynamic_linking", "detailed_trace", "bevy_dynamic_plugin"]

[dependencies.ht-core]
version = "0.1.0"
path = "../ht-core"
7 changes: 2 additions & 5 deletions ht/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ fn main() {
.unwrap()
}),
..bevy_tokio_tasks::TokioTasksPlugin::default()
});

unsafe {
app.load_plugin("ht_core");
}
})
.add_plugin(ht_core::SamplePlugin);

app.add_startup_system(add_people).run();
}
Expand Down

0 comments on commit a7e9015

Please sign in to comment.