pioneerspacesim/pioneer — pull request #1051 by Luomu (2012-03-05 16:01:26+00:00)
Title: Move ship definitions into their own files

Moved spaceship definitions out from models and into data/ships/*.lua.

Pros:
Definitions are not buried inside model files (they were pretty much never on top of the files)
Easier to reuse a model for ship variants (and can now use any model as a ship...)
Tweaking a ship does not recompile model cache
Reduced dependency on LMR
Slightly nicer to extend the definition format in the future

Cons:
Can't (un)install a new entire ship by copying one directory. This is more of a future problem when players want to install a hundred ship mods. A mod package format would solve this.

The definitions are very much the same as before, with the addition of model name parameter:

```lua
define_ship {
name='Interplanetary Shuttle',
model='ip_shuttle',
forward_thrust = -15e5,
reverse_thrust = 8e5,
up_thrust = 8e5,
down_thrust = -4e5,
left_thrust = -4e5,
right_thrust = 4e5,
angular_thrust = 28e5,
gun_mounts =
{
{ v(0,-0.3,-7.9) , v(0,0,-1) },
{ v(0,-0.3,7.5), v(0,0,1) },
},
max_cargo = 12,
max_laser = 1,
max_missile = 0,
max_fuelscoop = 0,
max_cargoscoop = 0,
max_ecm = 0,
max_engine = 0,
hyperdrive_class = 0,
capacity = 12,
hull_mass = 11,
fuel_tank_mass = 1,
thruster_fuel_use = 0.00005,
price = 14000,
}
```