From 5144fe0e9ac145336f9e980016db814c3e04bdf0 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 18 Dec 2024 18:36:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 967c98a..c616e01 100644 --- a/README.md +++ b/README.md @@ -38,12 +38,12 @@ Usage example: $meta = \bhl_bind\prepare_meta($meta); - file_put_contents('autobind.cs', - \bhl_bind\codegen(null, $meta, + $output = \bhl_bind\codegen(null, $meta, [ 'imports' => ['UnityEngine'], 'register_class' => 'BHL_AutoBindings', ] - ) - ); + ); + foreach($output as $name => $text) + file_put_contents($name, $text);