Zone Properties Panel

You can now click on a zone to view what resources are present
This commit is contained in:
hyperion51 2020-05-01 00:09:09 +01:00
commit ba681abeb6
10 changed files with 2475 additions and 352 deletions

View file

@ -64,6 +64,7 @@ public class GameContext
var zoneData = Cache.Get<ZoneData>(zoneID);
// TODO: Associate planets with stored entities for planetary colonies
var planetsData = zoneData.Planets.Select(id => Cache.Get<PlanetData>(id)).ToArray();
var planetEntities = planetsData.ToDictionary(p => p,
p => new OrbitalEntity(this, null, Enumerable.Empty<Gear>(), Enumerable.Empty<ItemInstance>(), p.Belt ? Cache.Get<OrbitData>(p.Orbit).Parent : p.Orbit));