Example #1
0
 // Looks at the images used on the passed tile and files them into the image library if they aren't already.
 public static void FileImages(Tile tile, List <String> list)
 {
     for (int i = 0; i < tile.GetImageKeys().Length; i++)
     {
         if (!list.Contains(tile.GetImageKeys()[i]) && tile.GetImageKeys()[i] != null)
         {
             list.Add(tile.GetImageKeys()[i]);
         }
     }
 }
Example #2
0
 // Looks at the images used on the passed tile and files them into the image library if they aren't already.
 public static void FileImages(Tile tile, List<String> list)
 {
     for (int i = 0; i < tile.GetImageKeys().Length; i++)
     {
         if(!list.Contains(tile.GetImageKeys()[i]) && tile.GetImageKeys()[i] != null)
             list.Add(tile.GetImageKeys()[i]);
     }
 }