Theater definitions in yaml

This commit is contained in:
Paul Chote
2010-03-04 18:26:43 +13:00
parent 1914a8adbe
commit 724928cf56
10 changed files with 82 additions and 16 deletions

View File

@@ -339,7 +339,9 @@ namespace OpenRA
DrawCentered("Size: {0}x{1}".F(currentMap.Map.Width, currentMap.Map.Height),
new int2(mapRect.Left + mapRect.Width / 2, y), Color.White);
y += 20;
DrawCentered("Theater: {0}".F(currentMap.Map.Theater, currentMap.Map.Height),
TheaterInfo theaterInfo = Game.world.WorldActor.Info.Traits.WithInterface<TheaterInfo>().Where(t => t.Theater == currentMap.Map.Theater).FirstOrDefault();
DrawCentered("Theater: {0}".F(theaterInfo.Name, currentMap.Map.Height),
new int2(mapRect.Left + mapRect.Width / 2, y), Color.White);
y += 20;
DrawCentered("Spawnpoints: {0}".F(currentMap.Map.SpawnPoints.Count()),