Merge branch 'master' of https://git.bit5.ru/bit/metagen_bhl_bind
This commit is contained in:
commit
13c2ff02ae
|
@ -3,9 +3,10 @@ This package is used for code generation of bhl2 bindings for C# using Twig temp
|
|||
Usage example:
|
||||
|
||||
$twig = \bhl_bind\bhl_twig();
|
||||
$meta = \bhl_bind\bhl_prepare_meta($meta);
|
||||
file_put_contents('autobind.cs',
|
||||
$twig->render("codegen_register.twig",
|
||||
$twig->render("codegen_autobind.twig",
|
||||
['imports' => ['UnityEngine'],
|
||||
'units' => $meta->getUnits()]
|
||||
'meta' => $meta]
|
||||
)
|
||||
);
|
Loading…
Reference in New Issue