This commit is contained in:
Paul Chote
2010-03-04 21:13:21 +13:00
parent 399d2f73e8
commit 2edb672873
3 changed files with 8 additions and 2 deletions

View File

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

View File

@@ -79,7 +79,7 @@ namespace OpenRA
customTerrain = new ICustomTerrain[Map.MapSize, Map.MapSize];
Timer.Time( "new Map: {0}" );
TheaterInfo theaterInfo = Rules.Info["world"].Traits.WithInterface<TheaterInfo>().Where(t => t.Theater == Map.Theater).FirstOrDefault();
var theaterInfo = Rules.Info["world"].Traits.WithInterface<TheaterInfo>().FirstOrDefault(t => t.Theater == Map.Theater);
TileSet = new TileSet(theaterInfo.Tileset, theaterInfo.Templates, theaterInfo.Suffix);
SpriteSheetBuilder.Initialize( Map );

View File

@@ -256,6 +256,12 @@ World:
Suffix:tem
Templates:templates.ini
Tileset:tileSet.til
Theater@INTERIOR:
Name:Interior
Theater:INTERIOR
Suffix:int
Templates:templates.ini
Tileset:tileSet.til
MGG:
GeneratesGap: