metagen_bhl_bind/README.md

314 B

This package is used for code generation of bhl2 bindings for C# using Twig templates

Usage example:

$twig = \bhl_bind\bhl_twig();
file_put_contents('autobind.cs', 
  $twig->render("codegen_register.twig", 
    ['imports' => ['UnityEngine'], 
     'units' => $meta->getUnits()]
  )
);