Ejemplo n.º 1
0
 // Token: 0x060003B7 RID: 951 RVA: 0x00019DE0 File Offset: 0x00017FE0
 public void ToStreamEx(Stream s, PmxElementFormat f)
 {
     s.WriteByte((byte)this.ElementType);
     PmxNode.ElementType elementType = this.ElementType;
     if (elementType != PmxNode.ElementType.Bone)
     {
         if (elementType == PmxNode.ElementType.Morph)
         {
             PmxStreamHelper.WriteElement_Int32(s, this.Index, f.MorphSize, true);
         }
     }
     else
     {
         PmxStreamHelper.WriteElement_Int32(s, this.Index, f.BoneSize, true);
     }
 }
Ejemplo n.º 2
0
 // Token: 0x060003B6 RID: 950 RVA: 0x00019D88 File Offset: 0x00017F88
 public void FromStreamEx(Stream s, PmxElementFormat f)
 {
     this.ElementType = (PmxNode.ElementType)s.ReadByte();
     PmxNode.ElementType elementType = this.ElementType;
     if (elementType != PmxNode.ElementType.Bone)
     {
         if (elementType == PmxNode.ElementType.Morph)
         {
             this.Index = PmxStreamHelper.ReadElement_Int32(s, f.MorphSize, true);
         }
     }
     else
     {
         this.Index = PmxStreamHelper.ReadElement_Int32(s, f.BoneSize, true);
     }
 }