Would anybody mind adding an owner member to planets?
Or, alternatively, does anyone mind if I add an owner (empire_id) to a planet?
Otherwise, for me to find out which planet owns it (to add the missile defense value to that particular empire's fleet), I need to iterate through each empire, and iterate through each planet of that empire, until I get one that matches the planet ID.
Or is there a simpler way of doing that and I'm just missing it?
Isn't there an 'owner' member somewhere in planet's inheritance tree? Have you looked in the base classes? It seems odd that something as obviously useful as that would have slipped by.
jbarcz1 wrote:Isn't there an 'owner' member somewhere in planet's inheritance tree? Have you looked in the base classes? It seems odd that something as obviously useful as that would have slipped by.