public PMDData() { Header = new PMDHeader (); Vertices = new PMDVertexCollection (); Indices = new PMDIndexCollection (); Materials = new PMDMaterialCollection (); Bones = new PMDBoneCollection (); Iks = new PMDIkCollection (); Faces = new PMDFaceCollection (); FaceFrames = new PMDFaceFrameCollection (); BoneFrames = new PMDBoneFrameCollection (); English = new PMDEnglish (); Toons = new PMDToonCollection (); Physicses = new PMDPhysicsCollection (); Joints = new PMDJointCollection (); }
private IPMDHeader ReadHeader() { //DebugPrintOffset("ReadHeader"); var value = new PMDHeader(); value.Magic = ReadString(3); value.Version = Reader.ReadSingle(); value.Name = ReadString(20); value.Comment = ReadString(256); return value; }