pioneerspacesim/pioneer — pull request #1245 by johnbartholomew (2012-05-05 20:50:08+00:00)
Title: Lua cleanup: remove OOLua, clean up MyLuaMathTypes (also prod sysgen)

MyLuaMathTypes has been rewritten into three components: LuaVector, LuaMatrix and LuaFixed.

The galaxy/sysgen code (Galaxy, Sector, StarSystem, CustomSystem, SystemPath) have been moved into `src/galaxy/`. `SBody` has been renamed (everywhere) to `SystemBody`. This doesn't really fit with the "Lua cleanup" theme; I should be able to extract those changes out if someone wants them to go through separate review.

LmrModel has been updated to use LuaVector and LuaMatrix. There have been some minor renames (`Matrix` -> `matrix`, `math.fixed.deg2rad` -> `fixed.deg2rad`, `matrix.orient` -> `matrix.pose`, `norm` -> `unit` or `unitv`, or `normalised` for the method). I've updated the scripts accordingly, but it's entirely possible that I've broken some models.

ShipType has been updated to use LuaVector. ShipType no longer loads all the Lua standard libraries, it now only loads base, math and debug. That's still more than we want, but is a little better.

CustomSystems has been rewritten using the normal Lua functions, but provides the same structure as before. As with ShipType, it only loads the standard base, math and debug libraries.

`pistartup.lua` has gone, with most of its content moved into C++ or scrapped. The one bit of it that has been kept in Lua is the `string.interp` function, which has been moved to data/libs/StringInterp.lua.

OOLua has been completely removed.