Пример #1
0
        private Structs.SKIN.SKIN[] ReadSkins(uint[] skinFileDataIDs)
        {
            var skins = new Structs.SKIN.SKIN[skinFileDataIDs.Length];

            for (var i = 0; i < skinFileDataIDs.Length; i++)
            {
                var skinreader = new SKINReader();
                skinreader.LoadSKIN(skinFileDataIDs[i]);
                skins[i] = skinreader.skin;
            }
            return(skins);
        }
Пример #2
0
        private WoWFormatLib.Structs.SKIN.SKIN[] readSkins(UInt32 num, String filename)
        {
            var skins = new WoWFormatLib.Structs.SKIN.SKIN[num];

            for (int i = 0; i < num; i++)
            {
                var skinfilename = filename.Replace(".M2", i.ToString().PadLeft(2, '0') + ".skin");
                if (!CASC.FileExists(skinfilename))
                {
                    new WoWFormatLib.Utils.MissingFile(skinfilename);
                }
                else
                {
                    SKINReader skinreader = new SKINReader();
                    skinreader.LoadSKIN(skinfilename);
                    skins[i] = skinreader.skin;
                }
            }
            return(skins);
        }
Пример #3
0
        private Structs.SKIN.SKIN[] ReadSkins(UInt32 num, String filename)
        {
            var skins = new Structs.SKIN.SKIN[num];

            for (int i = 0; i < num; i++)
            {
                var skinfilename = filename.Replace(".M2", i.ToString().PadLeft(2, '0') + ".skin");
                if (!Managers.ArchiveManager.FileExists(skinfilename))
                {
                    //File missing
                }
                else
                {
                    SKINReader skinreader = new SKINReader();
                    skinreader.LoadSKIN(skinfilename);
                    skins[i] = skinreader.skin;
                }
            }
            return(skins);
        }
Пример #4
0
 private WoWFormatLib.Structs.SKIN.SKIN[] readSkins(UInt32 num, String filename)
 {
     var skins = new WoWFormatLib.Structs.SKIN.SKIN[num];
     for (int i = 0; i < num; i++)
     {
         var skinfilename = filename.Replace(".M2", i.ToString().PadLeft(2, '0') + ".skin");
         if (!CASC.FileExists(skinfilename))
         {
             new WoWFormatLib.Utils.MissingFile(skinfilename);
         }
         else
         {
             SKINReader skinreader = new SKINReader();
             skinreader.LoadSKIN(skinfilename);
             skins[i] = skinreader.skin;
         }
     }
     return skins;
 }