Go to file
g.sadovnikov eda5f475a3 Merge branch 'master' of https://git.bit5.ru/bit/metagen_bhl_bind 2022-12-16 16:22:43 +03:00
src More consitent naming 2022-12-15 12:18:12 +03:00
tpl Fixing native proxied arrays At(..) type bindings 2022-12-16 16:21:36 +03:00
.gitignore Adding README and ignores file 2022-12-03 17:18:25 +03:00
README.md Изменил(а) на 'README.md' 2022-12-15 20:54:54 +03:00
composer.json Experimenting with composer deps 2022-12-14 16:39:10 +03:00

README.md

This package is used for code generation of bhl2 bindings for C# using Twig templates

Usage example:

$twig = \bhl_bind\get_twig();
$meta = \bhl_bind\prepare_meta($meta);

file_put_contents('autobind.cs', 
  $twig->render("codegen_autobind.twig", 
    [
     'imports' => ['UnityEngine'], 
     'meta' => $meta
    ]
  )
);

file_put_contents('types.cs', 
  $twig->render("codegen_types.twig", 
    [
     'meta' => $meta
    ]
  )
);