pioneerspacesim/pioneer — pull request #650 by johnbartholomew (2011-10-13 04:29:07+00:00)
Title: Remove pienums

Work done for #586.

Removes `data/pienums.lua`. Removes LMR functions `get_arg()` and `get_arg_string()`. Adds LMR functions:

* `get_time()`
* `get_flight_state()`
* `get_equipment()`
* `get_label()`
* `get_animation_stage()`
* `get_animation_position()`

All models currently in the repository have been updated accordingly. These functions have documentation which should be visible if you regenerate codedoc.

Changes on the C++ side include:

* New headers `*Enums.h` contain enumeration items. These are included into the normal header files to generate the enums themselves and in LuaConstants to generate the enum constant tables. This is a temporary solution: current expectation is that this will be replaced by a custom source processor tool to extract enums and build LuaConstant tables directly.
* `EquipSet` no longer has serialisation functionality -- this has been moved into a derived class, `SerializableEquipSet`
* New method `LmrModel::HasTag()`

This patch-set needs some shake-down time to find and fix bugs before it's merged (it has only had rudimentary testing so far).