pioneerspacesim/pioneer — pull request #716 by johnbartholomew (2011-10-22 22:46:36+00:00)
Title: Python script to scan for enums and generate LuaConstants tables

Work done for #686.

This removes the `*Enums.h` headers that were added by #650. Enum values have been put back into their normal locations.

The table used by LuaConstants to expose enums to Lua are now generated automatically by a Python script `scripts/scan_enums.py`. The output of this script has been included in the repository so that Python doesn't become a normal build dependency and because the enums aren't likely to change very often.

Enums are exposed if they have a comment containing an `` tag. This tag supports a few attributes to alter the generated data. Individual items can be excluded from the generated tables by tagging them with ``.

This is a first cut. Posting as a pull request to make it easier to review. It has not yet been tested beyond being built.