public static LayeredTileMap FromReducedTileMapInfo(string fileName, string contentManagerName)
 {
     using (Stream inputStream = FileManager.GetStreamForFile(fileName))
         using (BinaryReader binaryReader = new BinaryReader(inputStream))
         {
             ReducedTileMapInfo rtmi = ReducedTileMapInfo.ReadFrom(binaryReader);
             return(FromReducedTileMapInfo(rtmi, contentManagerName, fileName));
         }
 }
Beispiel #2
0
        public static LayeredTileMap FromReducedTileMapInfo(string fileName, string contentManagerName)
        {
            using (Stream inputStream = FileManager.GetStreamForFile(fileName))
                using (BinaryReader binaryReader = new BinaryReader(inputStream))
                {
                    ReducedTileMapInfo rtmi = ReducedTileMapInfo.ReadFrom(binaryReader);



                    string fullFileName = fileName;
                    if (FileManager.IsRelative(fullFileName))
                    {
                        fullFileName = FileManager.RelativeDirectory + fileName;
                    }

                    var toReturn = FromReducedTileMapInfo(rtmi, contentManagerName, fileName);
                    toReturn.Name = fullFileName;
                    return(toReturn);
                }
        }