GalaxyProvince.Region: the region index BuildProvinces derives, never persisted
StationDeck deals a faction's stations per region; BuildProvinces sets it on generation and on save. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
85a38ddd0f
commit
82dc3e878d
1 changed files with 4 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ public class Galaxy
|
|||
for (var place = 0; place < seeds.Length; place++)
|
||||
{
|
||||
var type = types != null && types.TryGetValue(seeds[place], out var saved) && _cache.Get(saved) != null ? saved : hand[place];
|
||||
var province = new GalaxyProvince {Seed = Zones[seeds[place]], Type = type, Zones = region.Where(zone => seedOf[zone] == seeds[place]).Select(zone => Zones[zone]).ToArray()};
|
||||
var province = new GalaxyProvince {Seed = Zones[seeds[place]], Type = type, Region = region.Key, Zones = region.Where(zone => seedOf[zone] == seeds[place]).Select(zone => Zones[zone]).ToArray()};
|
||||
foreach (var zone in province.Zones) zone.Province = province;
|
||||
provinces.Add(province);
|
||||
}
|
||||
|
|
@ -703,6 +703,9 @@ public class GalaxyProvince
|
|||
{
|
||||
public GalaxyZone Seed;
|
||||
public CultRecordRef<ProvinceData> Type;
|
||||
// The region index Provinces.Regions gives this province's zones: derived by BuildProvinces on generation and on save, never
|
||||
// persisted. StationDeck deals a faction's stations per region.
|
||||
public int Region;
|
||||
public GalaxyZone[] Zones;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue