diff --git a/README.md b/README.md index c7632ac..290e66c 100644 --- a/README.md +++ b/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 + ] ) ); \ No newline at end of file