Изменил(а) на 'README.md'

This commit is contained in:
Pavel Shevaev 2022-12-15 20:54:54 +03:00
parent 13c2ff02ae
commit 76d3002e68
1 changed files with 15 additions and 4 deletions

View File

@ -2,11 +2,22 @@ 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);
$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]
[
'imports' => ['UnityEngine'],
'meta' => $meta
]
)
);
file_put_contents('types.cs',
$twig->render("codegen_types.twig",
[
'meta' => $meta
]
)
);