Fixing classes registration

This commit is contained in:
Pavel Shevaev 2022-12-09 17:38:17 +03:00
parent 98e992ac6b
commit 8c9cd5c5b0
1 changed files with 2 additions and 2 deletions

View File

@ -546,6 +546,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack
}
{% endif ~%}
);
{{scope}}.{{o.name|ns_prefix}}Define(cl);
{% if has_token(o, 'POD') and not has_token(o, 'bhl_custom_rw') %}
{{Warn("bhl POD boxing '" ~ o.name ~ "'")}}
@ -563,7 +564,6 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack
{% endif %}
{% endfor %}
{{scope}}.{{o.name|ns_prefix}}Define(cl);
cl.Setup();
}
@ -725,10 +725,10 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack
{% if has_token(o, 'bhl_ecs_component_ref') %}
{
var cl = new ClassSymbolNative("{{o.name}}__Ref", null, null);
types.ns.Define(cl);
{% for f in o.getfields %}
{{ _self.ecs_component_field_ref(o, f) }}
{% endfor %}
types.ns.Define(cl);
cl.Setup();
{