This commit is contained in:
Pavel Shevaev 2022-12-15 12:18:58 +03:00
commit 13c2ff02ae
1 changed files with 3 additions and 2 deletions

View File

@ -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]
)
);