Beispiel #1
0
 public static Tileset Load(string filename)
 {
     if (TilesetXmlLoader.TileTypes == null)
     {
         TilesetXmlLoader.LoadTypes();
     }
     return(new TilesetXmlLoader().LoadXml("", filename));
 }
Beispiel #2
0
        public static Tileset[] MultiLoad(string filename, string[] levelNames)
        {
            if (TilesetXmlLoader.TileTypes == null)
            {
                TilesetXmlLoader.LoadTypes();
            }
            List <Tileset> tilesets = new List <Tileset>();

            for (int i = 0; i < levelNames.Length; i++)
            {
                tilesets.Add(new TilesetXmlLoader().LoadXml(levelNames[i], filename));
            }
            return(tilesets.ToArray());
        }