Exemplo n.º 1
0
 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      ();
 }
Exemplo n.º 2
0
        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;
        }