Adding support for ClassSymbolNative.native_object_getter for @bhl_custom_rw
Publish PHP Package / docker (push) Successful in 7s Details

This commit is contained in:
Pavel Shevaev 2024-07-23 16:27:23 +03:00
parent 7c97dd78ed
commit 924684d4a4
1 changed files with 7 additions and 0 deletions

View File

@ -638,6 +638,13 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack
{% endif ~%}
#if !BHL_FRONT
, native_type: typeof({{token_or(o, 'bhl_native_class', o.name)}})
{% if has_token(o, 'bhl_custom_rw') %}
, native_object_getter: (v) => {
var tmp = new {{token_or(o, 'bhl_native_class', o.name)}}();
v.Decode(ref tmp);
return tmp;
}
{% endif %}
#endif
);
{{scope}}.{{o.name|ns_prefix}}Define(cl);