public void Read(BinaryReader reader, float CoordZ, float scale)
 {
     SkinName = MMDUtils.GetString(reader.ReadBytes(20));
     DWORD skinVertCount = BitConverter.ToUInt32(reader.ReadBytes(4), 0);
     SkinType = reader.ReadByte();
     SkinVertDatas = new ModelSkinVertexData[skinVertCount];
     for (int i = 0; i < SkinVertDatas.Length; i++)
     {
         SkinVertDatas[i] = new ModelSkinVertexData(reader, CoordZ, scale);
     }
     SkinNameEnglish = null;
 }
Exemple #2
0
        public void Read(BinaryReader reader, float CoordZ, float scale)
        {
            SkinName = MMDUtils.GetString(reader.ReadBytes(20));
            DWORD skinVertCount = BitConverter.ToUInt32(reader.ReadBytes(4), 0);

            SkinType      = reader.ReadByte();
            SkinVertDatas = new ModelSkinVertexData[skinVertCount];
            for (int i = 0; i < SkinVertDatas.Length; i++)
            {
                SkinVertDatas[i] = new ModelSkinVertexData(reader, CoordZ, scale);
            }
            SkinNameEnglish = null;
        }