public RemoveQuads ( IEnumerable |
||
quadIndexes | IEnumerable |
|
리턴 | void |
private static void RemoveTilesFromLayer(List <List <NamedValue> > filteredInfos, MapDrawableBatch layer) { List <int> indexes = new List <int>(); foreach (var itemThatPasses in filteredInfos) { string tileName = itemThatPasses .FirstOrDefault(item => item.Name.ToLowerInvariant() == "name") .Value as string; if (layer.NamedTileOrderedIndexes.ContainsKey(tileName)) { var intsOnThisLayer = layer.NamedTileOrderedIndexes[tileName]; indexes.AddRange(intsOnThisLayer); } } layer.RemoveQuads(indexes); }
private static void RemoveTilesFromLayer(List<List<NamedValue>> filteredInfos, MapDrawableBatch layer) { List<int> indexes = new List<int>(); foreach (var itemThatPasses in filteredInfos) { string tileName = itemThatPasses .FirstOrDefault(item => item.Name.ToLowerInvariant() == "name") .Value as string; if (layer.NamedTileOrderedIndexes.ContainsKey(tileName)) { var intsOnThisLayer = layer.NamedTileOrderedIndexes[tileName]; indexes.AddRange(intsOnThisLayer); } } layer.RemoveQuads(indexes); }