From 76d3002e682dddc2a4033688932037428b5a56bf Mon Sep 17 00:00:00 2001 From: ps Date: Thu, 15 Dec 2022 20:54:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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