Skip to content

Commit ac99996

Browse files
committed
fix rest of tests and add missing features
1 parent 0b522d4 commit ac99996

File tree

5 files changed

+34
-8
lines changed

5 files changed

+34
-8
lines changed

Cargo.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ core_functions = ["bevy_mod_scripting_functions/core_functions"]
6666
bevy_a11y_bindings = ["bevy_mod_scripting_functions/bevy_a11y"]
6767
bevy_animation_bindings = ["bevy_mod_scripting_functions/bevy_animation"]
6868
bevy_asset_bindings = ["bevy_mod_scripting_functions/bevy_asset"]
69-
# bevy_camera
69+
bevy_camera_bindings = ["bevy_mod_scripting_functions/bevy_camera"]
7070
bevy_color_bindings = ["bevy_mod_scripting_functions/bevy_color"]
7171
bevy_core_pipeline_bindings = [
7272
"bevy_mod_scripting_functions/bevy_core_pipeline",
@@ -77,22 +77,24 @@ bevy_gltf_bindings = ["bevy_mod_scripting_functions/bevy_gltf"]
7777
bevy_image_bindings = ["bevy_mod_scripting_functions/bevy_image"]
7878
bevy_input_bindings = ["bevy_mod_scripting_functions/bevy_input"]
7979
bevy_input_focus_bindings = ["bevy_mod_scripting_functions/bevy_input_focus"]
80-
# bevy_light
80+
bevy_light_bindings = ["bevy_mod_scripting_functions/bevy_light"]
8181
bevy_math_bindings = ["bevy_mod_scripting_functions/bevy_math"]
8282
bevy_mesh_bindings = ["bevy_mod_scripting_functions/bevy_mesh"]
8383
bevy_pbr_bindings = ["bevy_mod_scripting_functions/bevy_pbr"]
8484
bevy_picking_bindings = ["bevy_mod_scripting_functions/bevy_picking"]
85-
# bevy_post_process
85+
bevy_post_process_bindings = ["bevy_mod_scripting_functions/bevy_post_process"]
8686
bevy_reflect_bindings = ["bevy_mod_scripting_functions/bevy_reflect"]
8787
bevy_render_bindings = ["bevy_mod_scripting_functions/bevy_render"]
8888
bevy_scene_bindings = ["bevy_mod_scripting_functions/bevy_scene"]
8989
bevy_sprite_bindings = ["bevy_mod_scripting_functions/bevy_sprite"]
90-
# bevy_sprite_renderer
90+
bevy_sprite_render_bindings = [
91+
"bevy_mod_scripting_functions/bevy_sprite_render",
92+
]
9193
bevy_text_bindings = ["bevy_mod_scripting_functions/bevy_text"]
9294
bevy_time_bindings = ["bevy_mod_scripting_functions/bevy_time"]
9395
bevy_transform_bindings = ["bevy_mod_scripting_functions/bevy_transform"]
94-
# bevy_ui
95-
# bevy_ui_render
96+
bevy_ui_bindings = ["bevy_mod_scripting_functions/bevy_ui"]
97+
bevy_ui_render_bindings = ["bevy_mod_scripting_functions/bevy_ui_render"]
9698

9799
# optional
98100
unsafe_lua_modules = ["bevy_mod_scripting_lua?/unsafe_lua_modules"]

assets/tests/add_system/added_systems_run_in_parallel.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ digraph {
4141
node_16 [label="on_test_post_update"];
4242
node_17 [label="custom_system_a"];
4343
node_18 [label="custom_system_b"];
44-
node_19 [label="SystemSet AssetEvents"];
44+
node_19 [label="SystemSet AssetEventSystems"];
4545
node_20 [label="SystemSet GarbageCollection"];
4646
node_21 [label="SystemSet ListeningPhase"];
4747
node_22 [label="SystemSet MachineStartPhase"];

assets/tests/add_system/added_systems_run_in_parallel.rhai

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ digraph {
4040
node_16 [label="on_test_post_update"];
4141
node_17 [label="custom_system_a"];
4242
node_18 [label="custom_system_b"];
43-
node_19 [label="SystemSet AssetEvents"];
43+
node_19 [label="SystemSet AssetEventSystems"];
4444
node_20 [label="SystemSet GarbageCollection"];
4545
node_21 [label="SystemSet ListeningPhase"];
4646
node_22 [label="SystemSet MachineStartPhase"];

crates/bevy_mod_scripting_functions/Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ readme.workspace = true
1515
bevy_a11y = ["bevy_a11y_bms_bindings"]
1616
bevy_animation = ["bevy_animation_bms_bindings"]
1717
bevy_asset = ["bevy_asset_bms_bindings"]
18+
bevy_camera = ["bevy_camera_bms_bindings"]
1819
bevy_color = ["bevy_color_bms_bindings"]
1920
bevy_core_pipeline = ["bevy_core_pipeline_bms_bindings"]
2021
bevy_ecs = ["bevy_ecs_bms_bindings"]
@@ -23,17 +24,22 @@ bevy_gltf = ["bevy_gltf_bms_bindings"]
2324
bevy_image = ["bevy_image_bms_bindings"]
2425
bevy_input = ["bevy_input_bms_bindings"]
2526
bevy_input_focus = ["bevy_input_focus_bms_bindings"]
27+
bevy_light = ["bevy_light_bms_bindings"]
2628
bevy_math = ["bevy_math_bms_bindings"]
2729
bevy_mesh = ["bevy_mesh_bms_bindings"]
2830
bevy_pbr = ["bevy_pbr_bms_bindings"]
2931
bevy_picking = ["bevy_picking_bms_bindings"]
32+
bevy_post_process = ["bevy_post_process_bms_bindings"]
3033
bevy_reflect = ["bevy_reflect_bms_bindings"]
3134
bevy_render = ["bevy_render_bms_bindings"]
3235
bevy_scene = ["bevy_scene_bms_bindings"]
3336
bevy_sprite = ["bevy_sprite_bms_bindings"]
37+
bevy_sprite_render = ["bevy_sprite_render_bms_bindings"]
3438
bevy_text = ["bevy_text_bms_bindings"]
3539
bevy_time = ["bevy_time_bms_bindings"]
3640
bevy_transform = ["bevy_transform_bms_bindings"]
41+
bevy_ui = ["bevy_ui_bms_bindings"]
42+
bevy_ui_render = ["bevy_ui_render_bms_bindings"]
3743

3844
core_functions = []
3945
lua_bindings = ["bevy_mod_scripting_lua"]
@@ -61,6 +67,7 @@ bevy_reflect = { workspace = true, features = [] }
6167
bevy_a11y_bms_bindings = { path = "../bindings/bevy_a11y_bms_bindings", version = "0.17.0", optional = true }
6268
bevy_animation_bms_bindings = { path = "../bindings/bevy_animation_bms_bindings", version = "0.17.0", optional = true }
6369
bevy_asset_bms_bindings = { path = "../bindings/bevy_asset_bms_bindings", version = "0.17.0", optional = true }
70+
bevy_camera_bms_bindings = { path = "../bindings/bevy_camera_bms_bindings", version = "0.17.0", optional = true }
6471
bevy_color_bms_bindings = { path = "../bindings/bevy_color_bms_bindings", version = "0.17.0", optional = true }
6572
bevy_core_pipeline_bms_bindings = { path = "../bindings/bevy_core_pipeline_bms_bindings", version = "0.17.0", optional = true }
6673
bevy_ecs_bms_bindings = { path = "../bindings/bevy_ecs_bms_bindings", version = "0.17.0", optional = true }
@@ -69,17 +76,22 @@ bevy_gltf_bms_bindings = { path = "../bindings/bevy_gltf_bms_bindings", version
6976
bevy_image_bms_bindings = { path = "../bindings/bevy_image_bms_bindings", version = "0.17.0", optional = true }
7077
bevy_input_bms_bindings = { path = "../bindings/bevy_input_bms_bindings", version = "0.17.0", optional = true }
7178
bevy_input_focus_bms_bindings = { path = "../bindings/bevy_input_focus_bms_bindings", version = "0.17.0", optional = true }
79+
bevy_light_bms_bindings = { path = "../bindings/bevy_light_bms_bindings", version = "0.17.0", optional = true }
7280
bevy_math_bms_bindings = { path = "../bindings/bevy_math_bms_bindings", version = "0.17.0", optional = true }
7381
bevy_mesh_bms_bindings = { path = "../bindings/bevy_mesh_bms_bindings", version = "0.17.0", optional = true }
7482
bevy_pbr_bms_bindings = { path = "../bindings/bevy_pbr_bms_bindings", version = "0.17.0", optional = true }
7583
bevy_picking_bms_bindings = { path = "../bindings/bevy_picking_bms_bindings", version = "0.17.0", optional = true }
84+
bevy_post_process_bms_bindings = { path = "../bindings/bevy_post_process_bms_bindings", version = "0.17.0", optional = true }
7685
bevy_reflect_bms_bindings = { path = "../bindings/bevy_reflect_bms_bindings", version = "0.17.0", optional = true }
7786
bevy_render_bms_bindings = { path = "../bindings/bevy_render_bms_bindings", version = "0.17.0", optional = true }
7887
bevy_scene_bms_bindings = { path = "../bindings/bevy_scene_bms_bindings", version = "0.17.0", optional = true }
7988
bevy_sprite_bms_bindings = { path = "../bindings/bevy_sprite_bms_bindings", version = "0.17.0", optional = true }
89+
bevy_sprite_render_bms_bindings = { path = "../bindings/bevy_sprite_render_bms_bindings", version = "0.17.0", optional = true }
8090
bevy_text_bms_bindings = { path = "../bindings/bevy_text_bms_bindings", version = "0.17.0", optional = true }
8191
bevy_time_bms_bindings = { path = "../bindings/bevy_time_bms_bindings", version = "0.17.0", optional = true }
8292
bevy_transform_bms_bindings = { path = "../bindings/bevy_transform_bms_bindings", version = "0.17.0", optional = true }
93+
bevy_ui_bms_bindings = { path = "../bindings/bevy_ui_bms_bindings", version = "0.17.0", optional = true }
94+
bevy_ui_render_bms_bindings = { path = "../bindings/bevy_ui_render_bms_bindings", version = "0.17.0", optional = true }
8395

8496
[lints]
8597
workspace = true

crates/bevy_mod_scripting_functions/src/core.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ pub fn register_bevy_bindings(app: &mut App) {
3535
app.add_plugins(bevy_animation_bms_bindings::BevyAnimationScriptingPlugin);
3636
#[cfg(feature = "bevy_asset")]
3737
app.add_plugins(bevy_asset_bms_bindings::BevyAssetScriptingPlugin);
38+
#[cfg(feature = "bevy_camera")]
39+
app.add_plugins(bevy_camera_bms_bindings::BevyCameraScriptingPlugin);
3840
#[cfg(feature = "bevy_color")]
3941
app.add_plugins(bevy_color_bms_bindings::BevyColorScriptingPlugin);
4042
#[cfg(feature = "bevy_core_pipeline")]
@@ -51,6 +53,8 @@ pub fn register_bevy_bindings(app: &mut App) {
5153
app.add_plugins(bevy_input_bms_bindings::BevyInputScriptingPlugin);
5254
#[cfg(feature = "bevy_input_focus")]
5355
app.add_plugins(bevy_input_focus_bms_bindings::BevyInputFocusScriptingPlugin);
56+
#[cfg(feature = "bevy_light")]
57+
app.add_plugins(bevy_light_bms_bindings::BevyLightScriptingPlugin);
5458
#[cfg(feature = "bevy_math")]
5559
app.add_plugins(bevy_math_bms_bindings::BevyMathScriptingPlugin);
5660
#[cfg(feature = "bevy_mesh")]
@@ -59,6 +63,8 @@ pub fn register_bevy_bindings(app: &mut App) {
5963
app.add_plugins(bevy_pbr_bms_bindings::BevyPbrScriptingPlugin);
6064
#[cfg(feature = "bevy_picking")]
6165
app.add_plugins(bevy_picking_bms_bindings::BevyPickingScriptingPlugin);
66+
#[cfg(feature = "bevy_post_process")]
67+
app.add_plugins(bevy_post_process_bms_bindings::BevyPostProcessScriptingPlugin);
6268
#[cfg(feature = "bevy_reflect")]
6369
app.add_plugins(bevy_reflect_bms_bindings::BevyReflectScriptingPlugin);
6470
#[cfg(feature = "bevy_render")]
@@ -67,12 +73,18 @@ pub fn register_bevy_bindings(app: &mut App) {
6773
app.add_plugins(bevy_scene_bms_bindings::BevySceneScriptingPlugin);
6874
#[cfg(feature = "bevy_sprite")]
6975
app.add_plugins(bevy_sprite_bms_bindings::BevySpriteScriptingPlugin);
76+
#[cfg(feature = "bevy_sprite_render")]
77+
app.add_plugins(bevy_sprite_renderer_bms_bindings::BevySpriteRendererScriptingPlugin);
7078
#[cfg(feature = "bevy_text")]
7179
app.add_plugins(bevy_text_bms_bindings::BevyTextScriptingPlugin);
7280
#[cfg(feature = "bevy_time")]
7381
app.add_plugins(bevy_time_bms_bindings::BevyTimeScriptingPlugin);
7482
#[cfg(feature = "bevy_transform")]
7583
app.add_plugins(bevy_transform_bms_bindings::BevyTransformScriptingPlugin);
84+
#[cfg(feature = "bevy_ui")]
85+
app.add_plugins(bevy_ui_bms_bindings::BevyUiScriptingPlugin);
86+
#[cfg(feature = "bevy_ui_render")]
87+
app.add_plugins(bevy_ui_renderer_bms_bindings::BevyUiRendererScriptingPlugin);
7688
}
7789

7890
#[script_bindings(

0 commit comments

Comments
 (0)