add shel
This commit is contained in:
@@ -47,10 +47,7 @@ internal static class Fixtures
|
||||
Building = "main",
|
||||
Floor = "floor-1",
|
||||
Label = $"{101 + i}",
|
||||
Slots =
|
||||
[
|
||||
new SlotFill { Key = "studentDesks", Thing = "StudentDesk", Count = desks },
|
||||
],
|
||||
Seats = desks,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -72,7 +69,7 @@ internal static class Fixtures
|
||||
Building = "main",
|
||||
Floor = "floor-1",
|
||||
Label = "101",
|
||||
Slots = [new SlotFill { Key = "studentDesks", Thing = "StudentDesk", Count = 1 }],
|
||||
Seats = 1,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -84,6 +81,20 @@ internal static class Fixtures
|
||||
return new MapLayout { Rooms = rooms };
|
||||
}
|
||||
|
||||
public static MapLayout VanillaMap()
|
||||
{
|
||||
var root = Path.Combine(AppContext.BaseDirectory, "vanilla");
|
||||
var map = CatalogLoader.LastDefaultMap(
|
||||
[CatalogLoader.CorePackId],
|
||||
PackDocuments.FromDirectory(CatalogLoader.CorePackId, root));
|
||||
if (map is null)
|
||||
{
|
||||
throw new InvalidOperationException("Vanilla default map is missing.");
|
||||
}
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
public static Roster Generate(MapLayout map, int seed = SchoolSeed) =>
|
||||
RosterGenerator.Generate(Catalog(), map, seed, "Slavic", AsOf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user