This would be convenient and make the game data easier to maintain. For instance, special versions of ships and stations could inherit from the normal version, then add or modify a few elements.
The game would have to delay loading types that inherit until after the types they inherit from are loaded.
I'm not sure I understand, could you provide an example? It is already possible to inherit (though not all elements are inherited).
Also, you can inherit from <Type>
, which is a generic type. You can put any common element (<Events>
, <Language>
, etc.) and have either a station or ship class inherit from it.
A lot of systems and missions have custom versions of generic ships and stations. If these could inherit from the regular version, it would cut down on duplicate code and keep the versions matching, except for the specified changes, with less effort.
For instance, Starton Eridani could inherit from the generic Commonwealth metropolis, the Sung research station in EP could inherit from the Sung Fortress (see Sung Fortress in rescue Lilith mission still has old explosion (and maybe other stats))...
Agreed. But some cases are easier than others. The inherit mechanic is not too robust; lots of parameters don't get inherited.
We are using a lot more inheritance these days
Right, this is actually resolved. Thanks.