Enhance map layout and room definitions by adding optional labels for rooms and updating the API to support new room naming conventions. Introduce additional room types and localization strings for improved user experience in both English and Russian. Refactor map view logic to accommodate new room attributes and ensure accurate rendering in the UI. Update tests to validate changes in room structure and localization.
This commit is contained in:
@@ -21,5 +21,12 @@ public class VanillaCoreTests
|
||||
Assert.Equal("Кабинет директора", catalog.Label("ru", catalog.Rooms["PrincipalsOffice"]));
|
||||
Assert.Equal("Principal's office", catalog.Label("en", catalog.Rooms["PrincipalsOffice"]));
|
||||
Assert.Equal(["Sit"], catalog.Things["DirectorsChair"].Actions);
|
||||
Assert.True(catalog.Buildings.ContainsKey("GymBuilding"));
|
||||
Assert.True(catalog.Rooms.ContainsKey("Classroom"));
|
||||
Assert.Equal("Класс", catalog.Label("ru", catalog.Rooms["Classroom"]));
|
||||
Assert.Equal(["Teacher"], catalog.PositionsFor(DefKind.Room, "Classroom"));
|
||||
Assert.Equal(2, map.Buildings.Count);
|
||||
Assert.True(map.Rooms.Count >= 18, "Vanilla layout should look like a small school, not a stub.");
|
||||
Assert.Contains(map.Rooms, room => room.Id == "classroom-1a" && room.Label == "1A");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user