public void SelectGrid(LayMapTileGrid grid) { for (int i = 0; i < grid.Tiles.Count; i++) { ExtraTileInfo ti = (ExtraTileInfo)grid.Tiles[i].Tag; ti.Selected = true; } }
public LayEntity(List <LayProperty> properties, int index) { for (int i = index; i < properties.Count; i++) { LayProperty prop = properties[i]; switch (prop.Key) { case "EntityDescriptionID": if (m_DescriptionID != "") { ProcessData(); TilesGrid = new LayMapTileGrid(this); if (GetProperty("PatternMatchData") != null) { Pattern = new LayMapTilePattern(this); } ProcessGrids(); ProcessPattern(); return; } m_DescriptionID = prop.Value; break; case "EndEntityList": ProcessData(); TilesGrid = new LayMapTileGrid(this); if (GetProperty("PatternMatchData") != null) { Pattern = new LayMapTilePattern(this); } ProcessGrids(); ProcessPattern(); return; } m_Properties.Add(prop); } ProcessData(); TilesGrid = new LayMapTileGrid(this); if (GetProperty("PatternMatchData") != null) { Pattern = new LayMapTilePattern(this); } ProcessGrids(); ProcessPattern(); }
public LayEntity(List<LayProperty> properties, int index) { for (int i = index; i < properties.Count; i++) { LayProperty prop = properties[i]; switch (prop.Key) { case "EntityDescriptionID": if (m_DescriptionID != "") { ProcessData(); TilesGrid = new LayMapTileGrid(this); if (GetProperty("PatternMatchData") != null) Pattern = new LayMapTilePattern(this); ProcessGrids(); ProcessPattern(); return; } m_DescriptionID = prop.Value; break; case "EndEntityList": ProcessData(); TilesGrid = new LayMapTileGrid(this); if (GetProperty("PatternMatchData") != null) Pattern = new LayMapTilePattern(this); ProcessGrids(); ProcessPattern(); return; } m_Properties.Add(prop); } ProcessData(); TilesGrid = new LayMapTileGrid(this); if (GetProperty("PatternMatchData") != null) Pattern = new LayMapTilePattern(this); ProcessGrids(); ProcessPattern(); }