2022-12-07 17:25:44 +03:00
|
|
|
This package is used for code generation of C# meta structs using Twig templates
|
|
|
|
|
|
|
|
Usage example:
|
|
|
|
|
2024-12-18 18:38:43 +03:00
|
|
|
$output = \metagen_cs\codegen(null, get_meta(),
|
2024-03-27 12:20:29 +03:00
|
|
|
[
|
|
|
|
'namespace' => 'BitGames.Autogen'
|
|
|
|
]);
|
2024-12-18 18:38:43 +03:00
|
|
|
foreach($output as $name => $text)
|
|
|
|
file_put_contents($name, $text);
|
2024-03-27 12:20:29 +03:00
|
|
|
|