File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
crates/bevy_api_gen/templates Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ impl bevy::app::Plugin for {{ "ScriptingPlugin" | prefix_cratename | convert_cas
12
12
let mut world = app.world_mut();
13
13
14
14
{% for item in items %}
15
- NamespaceBuilder::<{{ item.ident }}>::new(world)
15
+ NamespaceBuilder::<{{ item.import_path }}>::new(world)
16
16
{%- for function in item.functions -%}
17
17
.overwrite_script_function("{{ function.ident }}", |
18
18
{%- for arg in function.args -%}
@@ -24,7 +24,7 @@ impl bevy::app::Plugin for {{ "ScriptingPlugin" | prefix_cratename | convert_cas
24
24
: {{- arg.proxy_ty -}},
25
25
{%- endfor -%}
26
26
| {
27
- let output: {{ function.output.proxy_ty }} = {{ item.ident }}::{{ function.ident }}(
27
+ let output: {{ function.output.proxy_ty }} = {{ item.import_path }}::{{ function.ident }}(
28
28
{%- for arg in function.args -%}
29
29
{%- if arg.ident != "self" -%}
30
30
{{- arg.ident -}}
Original file line number Diff line number Diff line change @@ -9,7 +9,14 @@ use super::{{crate}}::*;
9
9
{% endfor %}
10
10
11
11
12
- use bevy_mod_scripting_core::{AddContextInitializer, StoreDocumentation, bindings::ReflectReference};
12
+ use bevy_mod_scripting_core::{
13
+ AddContextInitializer,
14
+ StoreDocumentation,
15
+ bindings::{
16
+ ReflectReference,
17
+ function::from::{Ref, Mut, Val}
18
+ }
19
+ };
13
20
use bevy_mod_scripting_functions::RegisterScriptFunction;
14
21
15
22
{% if args.self_is_bms_lua %}
You can’t perform that action at this time.
0 commit comments