Adding support for ClassSymbolNative.native_object_getter for @bhl_custom_rw
Publish PHP Package / docker (push) Successful in 7s
Details
Publish PHP Package / docker (push) Successful in 7s
Details
This commit is contained in:
parent
7c97dd78ed
commit
924684d4a4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue