internal override WorldCollection GetWorlds(ResourceManager resourceManager, bool cacheResults = true) { if (this.worlds != null) { return(this.worlds); } WorldCollection worlds = basis.GetWorlds(resourceManager, cacheResults); if (worlds == null) { return(null); } WorldCollection dots = new WorldCollection(); foreach (var world in worlds) { var dot = new World(); dot.Hex = world.Hex; dot.UWP = "???????-?"; dot.PBG = "???"; dot.Allegiance = "??"; dot.Sector = this; dots[dot.X, dot.Y] = dot; } if (cacheResults) { this.worlds = dots; } return(dots); }
public void Resolve(SectorMap sectorMap, ResourceManager resourceManager, out Sector sector, out World world) { if (sectorMap == null) { throw new ArgumentNullException("sectorMap"); } sector = null; world = null; sector = sectorMap.FromLocation(Sector.X, Sector.Y); if (sector != null) { WorldCollection worlds = sector.GetWorlds(resourceManager, cacheResults: true); if (worlds != null) { world = worlds[World.X, World.Y]; } } }
public void Resolve(SectorMap.Milieu sectorMap, ResourceManager resourceManager, out Sector sector, out World world) { if (sectorMap == null) { throw new ArgumentNullException(nameof(sectorMap)); } sector = null; world = null; sector = sectorMap.FromLocation(Sector.X, Sector.Y); if (sector == null) { return; } WorldCollection worlds = sector.GetWorlds(resourceManager, cacheResults: true); if (worlds != null) { world = worlds[Hex]; } }
public void Resolve(SectorMap sectorMap, ResourceManager resourceManager, out Sector sector, out World world) { if (sectorMap == null) throw new ArgumentNullException("sectorMap"); sector = null; world = null; sector = sectorMap.FromLocation(Sector.X, Sector.Y); if (sector == null) return; WorldCollection worlds = sector.GetWorlds(resourceManager, cacheResults: true); if (worlds != null) world = worlds[World.X, World.Y]; }