Exemplo n.º 1
0
 public void Write(BinaryWriter bw)
 {
     PmdDocument.WritePmdString(bw, this.Name, 20);
     bw.Write(this.ParentBone);
     bw.Write(this.ConnectedToOrAssociatedBone);
     bw.Write((byte)this.Kind);
     bw.Write(this.IKParentBoneOrAssociationRate);
     this.Position.ForEach(bw.Write);
 }
Exemplo n.º 2
0
 public void Write(BinaryWriter bw)
 {
     this.Diffuse.ForEach(bw.Write);
     bw.Write(this.Power);
     this.Specular.ForEach(bw.Write);
     this.Ambient.ForEach(bw.Write);
     bw.Write(this.ToonIndex);
     bw.Write(this.NoEdge);
     bw.Write(this.IndexCount);
     PmdDocument.WritePmdString(bw, this.Texture, 20);
 }
Exemplo n.º 3
0
 public void Write(BinaryWriter bw)
 {
     PmdDocument.WritePmdString(bw, this.Name, 20);
     bw.Write((uint)this.Offsets.Count);
     bw.Write((byte)this.Kind);
     this.Indices.Zip(this.Offsets, Tuple.Create).ForEach(_ =>
     {
         bw.Write((uint)_.Item1);
         _.Item2.ForEach(bw.Write);
     });
 }
Exemplo n.º 4
0
 public void Write(BinaryWriter bw)
 {
     PmdDocument.WritePmdString(bw, this.Name, 20);
     bw.Write(this.RigidA);
     bw.Write(this.RigidB);
     this.Position.ForEach(bw.Write);
     this.Rotation.ForEach(bw.Write);
     this.LinearLowerLimit.ForEach(bw.Write);
     this.LinearUpperLimit.ForEach(bw.Write);
     this.AngularLowerLimit.ForEach(bw.Write);
     this.AngularUpperLimit.ForEach(bw.Write);
     this.LinearSpringStiffness.ForEach(bw.Write);
     this.AngularSpringStiffness.ForEach(bw.Write);
 }
Exemplo n.º 5
0
 public void Write(BinaryWriter bw)
 {
     PmdDocument.WritePmdString(bw, this.Name, 20);
     bw.Write(this.RelatedBone);
     bw.Write(this.Group);
     bw.Write((ushort)this.CollidableGroups);
     bw.Write((byte)this.Shape);
     this.Size.ForEach(bw.Write);
     this.Position.ForEach(bw.Write);
     this.Rotation.ForEach(bw.Write);
     bw.Write(this.Mass);
     bw.Write(this.LinearDamping);
     bw.Write(this.AngularDamping);
     bw.Write(this.Restitution);
     bw.Write(this.Friction);
     bw.Write((byte)this.Kind);
 }