split bridges to use different actor types for the various bridge types

This commit is contained in:
Chris Forbes
2010-01-19 12:37:11 +13:00
parent eb81076bce
commit df8f37c5e4
5 changed files with 57 additions and 19 deletions

View File

@@ -9,7 +9,7 @@ namespace OpenRa.FileFormats
public int Index;
public string Name;
public int2 Size;
public bool IsBridge;
public string Bridge;
public float HP;
public Dictionary<int, int> TerrainType = new Dictionary<int, int>();
}
@@ -37,7 +37,7 @@ namespace OpenRa.FileFormats
p => int.Parse(p.Value)),
Name = section.GetValue("Name", null).ToLowerInvariant(),
Index = int.Parse(section.Name.Substring(3)),
IsBridge = section.GetValue("bridge", "no") != "no",
Bridge = section.GetValue("bridge", null),
HP = float.Parse(section.GetValue("hp", "0"))
};