Skip to content

Commit

Permalink
feat: create LuaEngine resource that can be used to run lua systems.
Browse files Browse the repository at this point in the history
This doesn't include any lua bindings for the World yet, though, so
scripts can't do anything but log messages.
  • Loading branch information
zicklag committed Oct 19, 2023
1 parent 2405835 commit 96a2174
Show file tree
Hide file tree
Showing 6 changed files with 681 additions and 14 deletions.
70 changes: 58 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ thiserror = "1.0.48"
peg = "0.8.1"
egui_extras = { version = "0.23.0", default-features = false }

# Scripting
piccolo = { git = "https://github.com/triplehex/piccolo.git" }
gc-arena = { git = "https://github.com/kyren/gc-arena" }
send_wrapper = "0.6.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
directories = "1.0"
bevy_dylib = "0.11"

# anyhow = "1.0"
Expand Down
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ pub mod core;
pub mod fullscreen;
pub mod input;
pub mod music;
pub mod scripting;
pub mod sessions;
pub mod settings;
pub mod ui;

mod prelude {
pub use crate::{
core::prelude::*, impl_system_param, input::*, sessions::*, settings::*, GameMeta,
core::prelude::*, impl_system_param, input::*, scripting::*, sessions::*, settings::*,
GameMeta,
};
pub use bones_framework::prelude::*;
pub use once_cell::sync::Lazy;
Expand Down Expand Up @@ -79,6 +81,7 @@ fn main() {
.install_plugin(DefaultGamePlugin)
.install_plugin(music::game_plugin)
.install_plugin(settings::game_plugin)
.install_plugin(scripting::game_plugin)
.install_plugin(fullscreen::game_plugin)
.install_plugin(input::game_plugin)
.install_plugin(core::game_plugin)
Expand Down
Loading

0 comments on commit 96a2174

Please sign in to comment.