Convert TS terrain height, ramp, and minimap colors.

This commit is contained in:
Paul Chote
2014-10-23 15:11:45 +13:00
parent 63f5fc8613
commit 9f1def2840
2 changed files with 6280 additions and 9 deletions

View File

@@ -91,19 +91,22 @@ namespace OpenRA.Mods.TS.UtilityCommands
continue; continue;
s.Position = offsets[j] + 40; s.Position = offsets[j] + 40;
/* var height = */s.ReadUInt8(); var height = s.ReadUInt8();
var terrainType = s.ReadUInt8(); var terrainType = s.ReadUInt8();
/* var rampType = */s.ReadUInt8(); var rampType = s.ReadUInt8();
/* var height = */s.ReadUInt8();
if (!terrainTypes.ContainsKey(terrainType)) if (!terrainTypes.ContainsKey(terrainType))
throw new InvalidDataException("Unknown terrain type {0} in {1}".F(terrainType, templateFilename)); throw new InvalidDataException("Unknown terrain type {0} in {1}".F(terrainType, templateFilename));
Console.WriteLine("\t\t\t{0}: {1}", j, terrainTypes[terrainType]); Console.WriteLine("\t\t\t{0}: {1}", j, terrainTypes[terrainType]);
// Console.WriteLine("\t\t\t\tHeight: {0}", height); if (height != 0)
// Console.WriteLine("\t\t\t\tTerrainType: {0}", terrainType); Console.WriteLine("\t\t\t\tHeight: {0}", height);
// Console.WriteLine("\t\t\t\tRampType: {0}", rampType);
// Console.WriteLine("\t\t\t\tLeftColor: {0},{1},{2}", s.ReadUInt8(), s.ReadUInt8(), s.ReadUInt8()); if (rampType != 0)
// Console.WriteLine("\t\t\t\tRightColor: {0},{1},{2}", s.ReadUInt8(), s.ReadUInt8(), s.ReadUInt8()); Console.WriteLine("\t\t\t\tRampType: {0}", rampType);
Console.WriteLine("\t\t\t\tMinimapLeftColor: {0},{1},{2}", s.ReadUInt8(), s.ReadUInt8(), s.ReadUInt8());
Console.WriteLine("\t\t\t\tMinimapRightColor: {0},{1},{2}", s.ReadUInt8(), s.ReadUInt8(), s.ReadUInt8());
} }
} }
} }

File diff suppressed because it is too large Load Diff