File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/bevy_api_gen/templates Expand file tree Collapse file tree 1 file changed +3
-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.import_path }}>::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,13 +24,13 @@ 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.import_path }}::{{ 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 -}}
31
31
{%- else -%}
32
32
_{{- arg.ident -}}
33
- {%- endif -%},
33
+ {%- endif -%}.into() ,
34
34
{%- endfor -%}
35
35
).into();
36
36
output
You can’t perform that action at this time.
0 commit comments