Replacing @bhl_no_itype with @bhl_itype
This commit is contained in:
parent
4837f5a282
commit
34c6ed167c
|
@ -38,7 +38,7 @@ function supported_tokens()
|
|||
'bhl_set',
|
||||
'bhl_ref_arg',
|
||||
'bhl_bin_op',
|
||||
'bhl_no_itype'
|
||||
'bhl_itype'
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,6 @@ function prepare_meta(\mtgMetaInfo $orig)
|
|||
{
|
||||
$proxy = new \mtgMetaStruct($proxy_name);
|
||||
$proxy->setToken('bhl_native_arr_proxy', $fld->getType()->getValue());
|
||||
$proxy->setToken('bhl_no_itype', true);
|
||||
$meta->addUnit(new \mtgMetaInfoUnit('', $proxy));
|
||||
$arr_proxies[$proxy_name] = $proxy;
|
||||
}
|
||||
|
|
|
@ -493,9 +493,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack
|
|||
{%- if has_token(type, 'bhl_custom_rw') -%}
|
||||
{{value}}.Encode({{native}})
|
||||
{%- else -%}
|
||||
{%if not has_token(type, "bhl_no_itype") and
|
||||
not has_token(type, "bhl_ecs_component") and
|
||||
not has_token(type, "POD") -%}
|
||||
{%if has_token(type, "bhl_itype") -%}
|
||||
{{value}}.SetObj({{native}}, {{native}}?.GetIType())
|
||||
{%- else -%}
|
||||
{{value}}.SetObj({{native}}, BHL_Types.Type_{{type.name|norm_name}})
|
||||
|
|
Loading…
Reference in New Issue