public static void Debug(CCTMXMap map){
// string s = "[TMX:" + map.fileName + "]\n";
// if (map.properties != null) {
// s += " " + "Properties: ";
// var enumerator = map.properties.GetEnumerator();
// while (enumerator.MoveNext()) {
// KeyValuePair<object, object> propPair = enumerator.Current;
// s += propPair.Key + "=" + propPair.Value + " ";
// }
// s += "\n";
// }
// s += " " + "GID-FILES:\n";
// foreach (KeyValuePair<int, string> pair in map.gidToFiles) {
// s += " " + " " + pair.Key + "=" + pair.Value;
// if(map.gidToTileProperties.ContainsKey(pair.Key)){
// s += " properties: ";
// var enumerator = map.gidToTileProperties[pair.Key].GetEnumerator();
// while (enumerator.MoveNext()) {
// KeyValuePair<object, object> propPair = enumerator.Current;
// s += propPair.Key + "=" + propPair.Value + " ";
// }
// }
// s += "\n";
// }
// s += " " + "Layers("+ map.layers.Length +")\n";
// foreach (CCTMXLayer layer in map.layers) {
// s += " " + " " + "Layer:" + layer.name + "\n";
// if (layer.properties != null) {
// s += " " + " " + " " + "Properties: ";
//
// var enumerator = layer.properties.GetEnumerator();
// while (enumerator.MoveNext()) {
// KeyValuePair<object, object> propPair = enumerator.Current;
// s += propPair.Key + "=" + propPair.Value + " ";
// }
// s += "\n";
// }
// s += " " + " " + " " + "Tiles:\n";
// for(int row=0; row<layer.tiles.Length; row++){
// s += " " + " " + " " + " ";
// for(int col=0; col<layer.tiles[row].Length; col++)
// {
// CCTMXTile tile = layer.tiles[row][col];
// if(tile!=null)
// s += layer.tiles[row][col].gid + " ";
// else
// s += "0" + " ";
// }
// s += "\n";
// }
// }
// CCDebug.Log (s);
}
}