added bhl_no_array_proxy

This commit is contained in:
Madpwnhammer 2023-12-11 15:10:28 +03:00
parent 61c7ee7b35
commit 6d99d36956
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ function supported_tokens()
'bhl_native_class_params',
'bhl_native_prefix',
'bhl_custom_rw',
'bhl_no_array_proxy',
'bhl_get',
'bhl_set',
'bhl_ref_arg',
@ -89,7 +90,7 @@ function prepare_meta(\mtgMetaInfo $orig)
//NOTE: let's replace arrays with array proxies
foreach($fields as $name => $fld)
{
if($fld->getType() instanceof \mtgArrType)
if($fld->getType() instanceof \mtgArrType && !$fld->hasToken('bhl_no_array_proxy'))
{
$proxy_name = "List_{$fld->getType()->getValue()->getName()}";
if(!isset($arr_proxies[$proxy_name]))