Getting rid of unused @bhl_itype

This commit is contained in:
Pavel Shevaev 2023-04-06 01:04:07 +03:00
parent 34c6ed167c
commit 4a626df4f7
3 changed files with 4 additions and 9 deletions

View File

@ -17,7 +17,7 @@ Here the example of bindings declaration:
) : float
struct Vector2
@bhl_native_class:Vector2 @bhl_custom_rw @bhl_no_itype
@bhl_native_class:Vector2 @bhl_custom_rw
x : float
y : float
@ -54,4 +54,4 @@ Usage example:
'meta' => $meta
]
)
);
);

View File

@ -37,8 +37,7 @@ function supported_tokens()
'bhl_get',
'bhl_set',
'bhl_ref_arg',
'bhl_bin_op',
'bhl_itype'
'bhl_bin_op'
];
}

View File

@ -493,11 +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 has_token(type, "bhl_itype") -%}
{{value}}.SetObj({{native}}, {{native}}?.GetIType())
{%- else -%}
{{value}}.SetObj({{native}}, BHL_Types.Type_{{type.name|norm_name}})
{%- endif -%}
{{value}}.SetObj({{native}}, BHL_Types.Type_{{type.name|norm_name}})
{%- endif -%}
{%- endif -%}
{%- endif -%}