Exemple #1
0
 public string SkinNameEnglish { get; set; }//表示名(char[20]、英語)(拡張)
 internal void Read(BinaryReader reader, float CoordZ, float scale)
 {
     SkinName = MMDModel1.GetString(reader.ReadBytes(20));
     DWORD skin_vert_count = BitConverter.ToUInt32(reader.ReadBytes(4), 0);
     SkinType = reader.ReadByte();
     SkinVertDatas = new ModelSkinVertexData[skin_vert_count];
     for (int i = 0; i < SkinVertDatas.Length; i++)
     {
         SkinVertDatas[i] = new ModelSkinVertexData();
         SkinVertDatas[i].Read(reader, CoordZ, scale);
     }
     SkinNameEnglish = null;
 }
        }                                          //表示名(char[20]、英語)(拡張)
        internal void Read(BinaryReader reader, float CoordZ, float scale)
        {
            SkinName = MMDModel1.GetString(reader.ReadBytes(20));
            DWORD skin_vert_count = BitConverter.ToUInt32(reader.ReadBytes(4), 0);

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