From c1aa25e307707a80a1ccd0c4acafae52a34bbb33 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 20 Jun 2010 18:32:21 +1200 Subject: [PATCH] add 'pickany' flag in TileTemplate --- OpenRA.FileFormats/Map/Walkability.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.FileFormats/Map/Walkability.cs b/OpenRA.FileFormats/Map/Walkability.cs index 832c374cf3..0ee8f7dc9e 100644 --- a/OpenRA.FileFormats/Map/Walkability.cs +++ b/OpenRA.FileFormats/Map/Walkability.cs @@ -46,6 +46,7 @@ namespace OpenRA.FileFormats public int2 Size; public string Bridge; public float HP; + public bool PickAny; public Dictionary TerrainType = new Dictionary(); } @@ -77,7 +78,8 @@ namespace OpenRA.FileFormats p => (TerrainType)Enum.Parse(typeof(TerrainType),p.Value)), Bridge = section.GetValue("bridge", null), - HP = float.Parse(section.GetValue("hp", "0")) + HP = float.Parse(section.GetValue("hp", "0")), + PickAny = (bool)FieldLoader.GetValue(typeof(bool), section.GetValue("pickany", "no")), }; tile.Index = -1;