Изменил(а) на 'README.md'
This commit is contained in:
parent
13c2ff02ae
commit
76d3002e68
19
README.md
19
README.md
|
@ -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
|
||||
]
|
||||
)
|
||||
);
|
Loading…
Reference in New Issue