StationPlacementTests: each generated galaxy has its own directory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b305c66c6c
commit
4d6c307d0c
1 changed files with 2 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ public sealed class StationPlacementTests : IDisposable
|
||||||
{
|
{
|
||||||
private readonly string _root = Path.Combine(Path.GetTempPath(), "aetheria-stationplacement-" + Guid.NewGuid().ToString("N"));
|
private readonly string _root = Path.Combine(Path.GetTempPath(), "aetheria-stationplacement-" + Guid.NewGuid().ToString("N"));
|
||||||
private readonly List<CultCache> _caches = new List<CultCache>();
|
private readonly List<CultCache> _caches = new List<CultCache>();
|
||||||
|
private int _generation;
|
||||||
|
|
||||||
public StationPlacementTests() => Directory.CreateDirectory(_root);
|
public StationPlacementTests() => Directory.CreateDirectory(_root);
|
||||||
|
|
||||||
|
|
@ -34,7 +35,7 @@ public sealed class StationPlacementTests : IDisposable
|
||||||
{
|
{
|
||||||
for (uint seed = 1; seed <= seeds; seed++)
|
for (uint seed = 1; seed <= seeds; seed++)
|
||||||
{
|
{
|
||||||
var dir = Path.Combine(_root, $"galaxy{seed}");
|
var dir = Path.Combine(_root, $"galaxy{seed}-{_generation++}");
|
||||||
Directory.CreateDirectory(dir);
|
Directory.CreateDirectory(dir);
|
||||||
var catalog = Path.Combine(dir, "Aetheria.cc");
|
var catalog = Path.Combine(dir, "Aetheria.cc");
|
||||||
File.Copy(TestCatalog.Repo, catalog);
|
File.Copy(TestCatalog.Repo, catalog);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue