private void ProcessPattern() { //throw new NotImplementedException(); LayProperty pattern = GetProperty("PatternMatchData"); if (pattern == null) { return; } Pattern = new LayMapTilePattern(this); }
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(); }
private void ProcessPattern() { //throw new NotImplementedException(); LayProperty pattern = GetProperty("PatternMatchData"); if (pattern == null) return; Pattern = new LayMapTilePattern(this); }
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(); }