public void Read(BinaryReader reader) { m_olJoints = new List <TJoint>(); m_olBitmaps = new List <Bitmap>(); m_nDrawMode = reader.ReadInt32(); m_sTension = reader.ReadSingle(); m_nCurveWidth = reader.ReadInt32(); m_nJointCount = reader.ReadInt32(); int nCount = reader.ReadInt32(); for (int i = 0; i < nCount; i++) { TJoint joint = new TJoint(); joint.Read(reader); m_olJoints.Add(joint); } m_nPoseCount = reader.ReadInt32(); m_sAlpha = 1.0f - (m_nPoseCount / 255.0f); m_nBitmapCount = reader.ReadInt32(); for (int f = 0; f < m_nBitmapCount; f++) { Bitmap bmp = FileFormat.LoadBitmap(reader); m_olBitmaps.Add(bmp); } }