Remove TileSet.Palette and PaletteFromCurrentTileset.

This commit is contained in:
Paul Chote
2018-04-08 17:27:58 +00:00
committed by reaperrr
parent 7221c29d9b
commit 4f0aa89c01
22 changed files with 179 additions and 87 deletions

View File

@@ -191,14 +191,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
Console.WriteLine("\tRenderSprites:");
if (useTerrainPalette)
{
if (Game.ModData.DefaultRules.Actors.ContainsKey("world"))
{
var terrainPaletteDefintion = Game.ModData.DefaultRules.Actors["world"].TraitInfos<PaletteFromCurrentTilesetInfo>();
if (terrainPaletteDefintion.Any())
Console.WriteLine("\t\tPalette: " + terrainPaletteDefintion.Last().Name);
}
}
Console.WriteLine("\t\tPalette: terrain");
var image = rulesSection.GetValue("Image", string.Empty);
if (!string.IsNullOrEmpty(image) && image != "none")