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);