M Cargo.lock => Cargo.lock +39 -0
@@ 509,6 509,15 @@ dependencies = [
]
[[package]]
+name = "bevy_event_priority"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4445486c743747a2027ff839589290c576ed792e47d956f71b24ecc7caaba20"
+dependencies = [
+ "bevy",
+]
+
+[[package]]
name = "bevy_gilrs"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ 664,6 673,29 @@ dependencies = [
]
[[package]]
+name = "bevy_mod_scripting"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1d302342816aa0c5e7d75f6c51858a9b3b7592e8246fbc2702d31825b625f52"
+dependencies = [
+ "bevy",
+ "bevy_mod_scripting_core",
+]
+
+[[package]]
+name = "bevy_mod_scripting_core"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a8612cbc9aca1a161dbc565e92026a424c307fee580e22705bc06a7536528f48"
+dependencies = [
+ "bevy",
+ "bevy_event_priority",
+ "parking_lot",
+ "paste",
+ "thiserror",
+]
+
+[[package]]
name = "bevy_pbr"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ 2908,6 2940,12 @@ dependencies = [
]
[[package]]
+name = "paste"
+version = "1.0.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d01a5bd0424d00070b0098dd17ebca6f961a959dead1dbcbbbc1d1cd8d3deeba"
+
+[[package]]
name = "peeking_take_while"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ 3260,6 3298,7 @@ dependencies = [
"bevy-inspector-egui",
"bevy_console",
"bevy_egui",
+ "bevy_mod_scripting",
"directories",
"futures-lite",
"reqwest",
M sdbclient/Cargo.toml => sdbclient/Cargo.toml +1 -0
@@ 16,6 16,7 @@ bevy = { version = "0.9.1" }
bevy_egui = "0.17"
bevy-inspector-egui = "0.14.0"
bevy_console = "0.5.0"
+bevy_mod_scripting = "0.2.1"
# http requests
reqwest = { version = "0.11.13", features = ["blocking", "json"] }
M sdbclient/src/main.rs => sdbclient/src/main.rs +4 -0
@@ 15,6 15,8 @@ use bevy_console::{ConsoleConfiguration, ConsolePlugin, ToggleConsoleKey};
use bevy_egui::EguiPlugin;
use bevy_inspector_egui::WorldInspectorPlugin;
+use bevy_mod_scripting::prelude::*;
+
mod api;
mod cfg;
mod constants;
@@ 61,6 63,8 @@ fn main() {
..Default::default()
}));
+ app.add_plugin(ScriptingPlugin);
+
app.add_plugin(EguiPlugin);
app.add_plugin(WorldInspectorPlugin::new());
app.add_plugin(ConsolePlugin);