Chronojam/SpaceGame — pull request #13 by martindevans (2014-01-16 17:05:23+00:00)
Title: Refactoring ShipComponent logic

Moved all logic for power consumption out from ShipMovement.cs and into separate components. This now means that ShipMovement.cs has nothing to do with movement and everything to do with power management, I suggest a rename! PowerNetwork.cs maybe

I inserted a comment in ShipMovement.cs for how to better handle updating components, requires a slight refactor on how components are stored (rather than Engine[], Generator[], Station[] etc etc just have ShipComponent[] and loop over that)