@allejo/bzf-plugin-gen
v1.0.8
Published
The core logic for generating C++ plug-in source from JSON
Readme
bzfPluginGen
Generating the skeleton of a BZFlag plug-in can be repetitive, mundane, tedious and synonyms. This library will be dedicated to generating a C++ plug-in skeleton given a JSON object following the IPlugin TypeScript interface.
There is no UI or CLI tool in this repo for you to run and test. If you are looking for a web-based UI, take a look at BZFlag Plug-in Starter v3.
Usage
The library has the PluginBuilder and PluginWriter classes for you to make use of.
- The
PluginBuilderis a helper class that will help you build theIPlugininterface programmatically and correctly. - The
PluginWriterclass takes anIPluginobject and provides awrite()method to output the generated C++ code.
