Skip to content

feat: create ScriptingDocgenPlugin to allow exporting LAD files + export BMS bindings #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ Cargo.lock
assets/scripts/tlconfig.lua
**.log
**build/
.html
.html

/assets/**/*.lad.json
/docs/src/ladfiles/*.lad.json
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ rand = "0.8.5"
bevy_console = "0.13"
# rhai-rand = "0.1"
ansi-parser = "0.9"
ladfile_builder = { path = "crates/ladfile_builder", version = "0.2.0" }

[workspace]
members = [
Expand Down Expand Up @@ -134,6 +135,11 @@ required-features = [
"bevy/multi_threaded",
]

[[example]]
name = "docgen"
path = "examples/docgen.rs"
required-features = []

[workspace.lints.clippy]
panic = "deny"
unwrap_used = "deny"
Expand Down
159 changes: 0 additions & 159 deletions assets/scripts/bevy_api.lua

This file was deleted.

17 changes: 0 additions & 17 deletions assets/scripts/complex_game_loop.lua

This file was deleted.

12 changes: 0 additions & 12 deletions assets/scripts/console_integration.lua

This file was deleted.

13 changes: 0 additions & 13 deletions assets/scripts/console_integration.rhai

This file was deleted.

23 changes: 0 additions & 23 deletions assets/scripts/coroutines.lua

This file was deleted.

23 changes: 0 additions & 23 deletions assets/scripts/dynamic_queries.lua

This file was deleted.

11 changes: 0 additions & 11 deletions assets/scripts/dynamic_queries.rhai

This file was deleted.

6 changes: 0 additions & 6 deletions assets/scripts/event_recipients.lua

This file was deleted.

3 changes: 0 additions & 3 deletions assets/scripts/event_recipients.rune

This file was deleted.

3 changes: 0 additions & 3 deletions assets/scripts/minimal.rune

This file was deleted.

16 changes: 0 additions & 16 deletions assets/scripts/multiple_events_rhai.rhai

This file was deleted.

3 changes: 0 additions & 3 deletions assets/scripts/runtime_error.lua

This file was deleted.

1 change: 0 additions & 1 deletion crates/bevy_mod_scripting_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ derivative = "2.2"
profiling = { workspace = true }
bevy_mod_scripting_derive = { workspace = true }


[dev-dependencies]
test_utils = { workspace = true }
tokio = { version = "1", features = ["rt", "macros"] }
Expand Down
1 change: 1 addition & 0 deletions crates/bevy_mod_scripting_core/src/docgen/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Documentation generation for scripting languages.

pub mod info;
pub mod typed_through;
1 change: 1 addition & 0 deletions crates/ladfile_builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ readme = "readme.md"
[dependencies]
bevy_mod_scripting_core = { workspace = true }
# I don't think bevy has a top level feature for this :C
bevy = { workspace = true }
bevy_reflect = { version = "0.15.2", features = ["documentation"] }
ladfile = { version = "0.2.0", path = "../ladfile" }
regex = "1.11"
Expand Down
1 change: 1 addition & 0 deletions crates/ladfile_builder/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Parsing definitions for the LAD (Language Agnostic Decleration) file format.
pub mod plugin;

use bevy_mod_scripting_core::{
bindings::{
Expand Down
Loading
Loading