public override void ToStreamEx(Stream s, PmxElementFormat f = null) { base.ToStreamEx(s, f); PmxStreamHelper.WriteElement_Int32(s, Index, f.BoneSize); V3_BytesConvert.ToStream(s, Translation); V4_BytesConvert.ToStream(s, new Vector4(Rotaion.X, Rotaion.Y, Rotaion.Z, Rotaion.W)); }
// Token: 0x060001AB RID: 427 RVA: 0x000102D8 File Offset: 0x0000E4D8 public void ToStreamEx_TexTable(Stream s, PmxTextureTable tx, PmxElementFormat f) { PmxStreamHelper.WriteString(s, this.Name, f); PmxStreamHelper.WriteString(s, this.NameE, f); V4_BytesConvert.ToStream(s, V4_BytesConvert.ColorToVector4(this.Diffuse)); V3_BytesConvert.ToStream(s, V3_BytesConvert.ColorToVector3(this.Specular)); PmxStreamHelper.WriteElement_Float(s, this.Power); V3_BytesConvert.ToStream(s, V3_BytesConvert.ColorToVector3(this.Ambient)); s.WriteByte((byte)this.Flags); V4_BytesConvert.ToStream(s, V4_BytesConvert.ColorToVector4(this.EdgeColor)); PmxStreamHelper.WriteElement_Float(s, this.EdgeSize); PmxStreamHelper.WriteElement_Int32(s, tx.GetIndex(this.Tex), f.TexSize, true); PmxStreamHelper.WriteElement_Int32(s, tx.GetIndex(this.Sphere), f.TexSize, true); s.WriteByte((byte)this.SphereMode); int toonIndex = SystemToon.GetToonIndex(this.Toon); bool flag = toonIndex < 0; if (flag) { s.WriteByte(0); PmxStreamHelper.WriteElement_Int32(s, tx.GetIndex(this.Toon), f.TexSize, true); } else { s.WriteByte(1); s.WriteByte((byte)toonIndex); } PmxStreamHelper.WriteString(s, this.Memo, f); PmxStreamHelper.WriteElement_Int32(s, this.FaceCount, 4, true); }
// Token: 0x06000188 RID: 392 RVA: 0x0000FA90 File Offset: 0x0000DC90 public void ToStreamEx(Stream s, PmxElementFormat f) { PmxStreamHelper.WriteString(s, this.Name, f); PmxStreamHelper.WriteString(s, this.NameE, f); bool flag = this.Kind != PmxJoint.JointKind.Sp6DOF && f.Ver < 2.1f; if (flag) { s.WriteByte(0); } else { s.WriteByte((byte)this.Kind); } PmxStreamHelper.WriteElement_Int32(s, this.BodyA, f.BodySize, true); PmxStreamHelper.WriteElement_Int32(s, this.BodyB, f.BodySize, true); V3_BytesConvert.ToStream(s, this.Position); V3_BytesConvert.ToStream(s, this.Rotation); V3_BytesConvert.ToStream(s, this.Limit_MoveLow); V3_BytesConvert.ToStream(s, this.Limit_MoveHigh); V3_BytesConvert.ToStream(s, this.Limit_AngleLow); V3_BytesConvert.ToStream(s, this.Limit_AngleHigh); V3_BytesConvert.ToStream(s, this.SpConst_Move); V3_BytesConvert.ToStream(s, this.SpConst_Rotate); }
// Token: 0x06000174 RID: 372 RVA: 0x0000F688 File Offset: 0x0000D888 public override void ToStreamEx(Stream s, PmxElementFormat size) { PmxStreamHelper.WriteElement_Int32(s, this.Index, size.BodySize, true); s.WriteByte(this.Local ? 1 : 0); V3_BytesConvert.ToStream(s, this.Velocity); V3_BytesConvert.ToStream(s, this.Torque); }
public void ToStreamEx(Stream s, PmxElementFormat f = null) { PmxStreamHelper.WriteString(s, Name, f); PmxStreamHelper.WriteString(s, NameE, f); if (Kind != 0 && f.Ver < 2.1f) { s.WriteByte(0); } else { s.WriteByte((byte)Kind); } PmxStreamHelper.WriteElement_Int32(s, BodyA, f.BodySize); PmxStreamHelper.WriteElement_Int32(s, BodyB, f.BodySize); V3_BytesConvert.ToStream(s, Position); V3_BytesConvert.ToStream(s, Rotation); V3_BytesConvert.ToStream(s, Limit_MoveLow); V3_BytesConvert.ToStream(s, Limit_MoveHigh); V3_BytesConvert.ToStream(s, Limit_AngleLow); V3_BytesConvert.ToStream(s, Limit_AngleHigh); V3_BytesConvert.ToStream(s, SpConst_Move); V3_BytesConvert.ToStream(s, SpConst_Rotate); if (f.WithID) { PmxStreamHelper.WriteElement_UInt(s, base.UID); PmxStreamHelper.WriteElement_UInt(s, base.CID); } }
public void ToStreamEx_TexTable(Stream s, PmxTextureTable tx, PmxElementFormat f = null) { PmxStreamHelper.WriteString(s, Name, f); PmxStreamHelper.WriteString(s, NameE, f); V4_BytesConvert.ToStream(s, Diffuse); V3_BytesConvert.ToStream(s, Specular); PmxStreamHelper.WriteElement_Float(s, Power); V3_BytesConvert.ToStream(s, Ambient); s.WriteByte((byte)Flags); V4_BytesConvert.ToStream(s, EdgeColor); PmxStreamHelper.WriteElement_Float(s, EdgeSize); PmxStreamHelper.WriteElement_Int32(s, tx.GetIndex(Tex), f.TexSize); PmxStreamHelper.WriteElement_Int32(s, tx.GetIndex(Sphere), f.TexSize); s.WriteByte((byte)SphereMode); int toonIndex = SystemToon.GetToonIndex(Toon); if (toonIndex < 0) { s.WriteByte(0); PmxStreamHelper.WriteElement_Int32(s, tx.GetIndex(Toon), f.TexSize); } else { s.WriteByte(1); s.WriteByte((byte)toonIndex); } PmxStreamHelper.WriteString(s, Memo, f); PmxStreamHelper.WriteElement_Int32(s, FaceCount); if (f.WithID) { PmxStreamHelper.WriteElement_UInt(s, base.UID); PmxStreamHelper.WriteElement_UInt(s, base.CID); } }
public override void ToStreamEx(Stream s, PmxElementFormat f = null) { base.ToStreamEx(s, f); PmxStreamHelper.WriteElement_Int32(s, Index, f.BodySize); s.WriteByte((byte)(Local ? 1u : 0u)); V3_BytesConvert.ToStream(s, Velocity); V3_BytesConvert.ToStream(s, Torque); }
public void ToStreamEx(Stream s, PmxElementFormat f = null) { V3_BytesConvert.ToStream(s, Position); V3_BytesConvert.ToStream(s, Normal); V2_BytesConvert.ToStream(s, UV); for (int i = 0; i < f.UVACount; i++) { V4_BytesConvert.ToStream(s, UVA[i]); } if (Deform == DeformType.QDEF && f.Ver < 2.1f) { s.WriteByte(2); } else { s.WriteByte((byte)Deform); } switch (Deform) { case DeformType.BDEF1: PmxStreamHelper.WriteElement_Int32(s, Weight[0].Bone, f.BoneSize); break; case DeformType.BDEF2: PmxStreamHelper.WriteElement_Int32(s, Weight[0].Bone, f.BoneSize); PmxStreamHelper.WriteElement_Int32(s, Weight[1].Bone, f.BoneSize); PmxStreamHelper.WriteElement_Float(s, Weight[0].Value); break; case DeformType.BDEF4: case DeformType.QDEF: PmxStreamHelper.WriteElement_Int32(s, Weight[0].Bone, f.BoneSize); PmxStreamHelper.WriteElement_Int32(s, Weight[1].Bone, f.BoneSize); PmxStreamHelper.WriteElement_Int32(s, Weight[2].Bone, f.BoneSize); PmxStreamHelper.WriteElement_Int32(s, Weight[3].Bone, f.BoneSize); PmxStreamHelper.WriteElement_Float(s, Weight[0].Value); PmxStreamHelper.WriteElement_Float(s, Weight[1].Value); PmxStreamHelper.WriteElement_Float(s, Weight[2].Value); PmxStreamHelper.WriteElement_Float(s, Weight[3].Value); break; case DeformType.SDEF: PmxStreamHelper.WriteElement_Int32(s, Weight[0].Bone, f.BoneSize); PmxStreamHelper.WriteElement_Int32(s, Weight[1].Bone, f.BoneSize); PmxStreamHelper.WriteElement_Float(s, Weight[0].Value); V3_BytesConvert.ToStream(s, C0); V3_BytesConvert.ToStream(s, R0); V3_BytesConvert.ToStream(s, R1); break; } PmxStreamHelper.WriteElement_Float(s, EdgeScale); if (f.WithID) { PmxStreamHelper.WriteElement_UInt(s, base.UID); PmxStreamHelper.WriteElement_UInt(s, base.CID); } }
public void ToStreamEx(Stream s, PmxElementFormat f = null) { PmxStreamHelper.WriteElement_Int32(s, Bone, f.BoneSize); s.WriteByte((byte)(IsLimit ? 1u : 0u)); if (IsLimit) { V3_BytesConvert.ToStream(s, Low); V3_BytesConvert.ToStream(s, High); } }
// Token: 0x06000282 RID: 642 RVA: 0x0001417C File Offset: 0x0001237C public void ToStreamEx(Stream s, PmxElementFormat f) { V3_BytesConvert.ToStream(s, this.Position); V3_BytesConvert.ToStream(s, this.Normal); V2_BytesConvert.ToStream(s, this.UV); for (int i = 0; i < f.UVACount; i++) { V4_BytesConvert.ToStream(s, this.UVA[i]); } bool flag = this.Deform == PmxVertex.DeformType.QDEF && f.Ver < 2.1f; if (flag) { s.WriteByte(2); } else { s.WriteByte((byte)this.Deform); } switch (this.Deform) { case PmxVertex.DeformType.BDEF1: PmxStreamHelper.WriteElement_Int32(s, this.Weight[0].Bone, f.BoneSize, true); break; case PmxVertex.DeformType.BDEF2: PmxStreamHelper.WriteElement_Int32(s, this.Weight[0].Bone, f.BoneSize, true); PmxStreamHelper.WriteElement_Int32(s, this.Weight[1].Bone, f.BoneSize, true); PmxStreamHelper.WriteElement_Float(s, this.Weight[0].Value); break; case PmxVertex.DeformType.BDEF4: case PmxVertex.DeformType.QDEF: PmxStreamHelper.WriteElement_Int32(s, this.Weight[0].Bone, f.BoneSize, true); PmxStreamHelper.WriteElement_Int32(s, this.Weight[1].Bone, f.BoneSize, true); PmxStreamHelper.WriteElement_Int32(s, this.Weight[2].Bone, f.BoneSize, true); PmxStreamHelper.WriteElement_Int32(s, this.Weight[3].Bone, f.BoneSize, true); PmxStreamHelper.WriteElement_Float(s, this.Weight[0].Value); PmxStreamHelper.WriteElement_Float(s, this.Weight[1].Value); PmxStreamHelper.WriteElement_Float(s, this.Weight[2].Value); PmxStreamHelper.WriteElement_Float(s, this.Weight[3].Value); break; case PmxVertex.DeformType.SDEF: PmxStreamHelper.WriteElement_Int32(s, this.Weight[0].Bone, f.BoneSize, true); PmxStreamHelper.WriteElement_Int32(s, this.Weight[1].Bone, f.BoneSize, true); PmxStreamHelper.WriteElement_Float(s, this.Weight[0].Value); V3_BytesConvert.ToStream(s, this.C0); V3_BytesConvert.ToStream(s, this.R0); V3_BytesConvert.ToStream(s, this.R1); break; } PmxStreamHelper.WriteElement_Float(s, this.EdgeScale); }
// Token: 0x060003A3 RID: 931 RVA: 0x0001978C File Offset: 0x0001798C public void ToStreamEx(Stream s, PmxElementFormat f) { PmxStreamHelper.WriteElement_Int32(s, this.Bone, f.BoneSize, true); s.WriteByte(this.IsLimit ? 1 : 0); bool isLimit = this.IsLimit; if (isLimit) { V3_BytesConvert.ToStream(s, this.Low); V3_BytesConvert.ToStream(s, this.High); } }
// Token: 0x06000107 RID: 263 RVA: 0x0000E6B4 File Offset: 0x0000C8B4 public void ToStreamEx(Stream s, PmxElementFormat f) { PmxStreamHelper.WriteString(s, this.Name, f); PmxStreamHelper.WriteString(s, this.NameE, f); V3_BytesConvert.ToStream(s, this.Position); PmxStreamHelper.WriteElement_Int32(s, this.Parent, f.BoneSize, true); PmxStreamHelper.WriteElement_Int32(s, this.Level, 4, true); PmxStreamHelper.WriteElement_Int32(s, (int)this.Flags, 2, false); bool flag = this.GetFlag(PmxBone.BoneFlags.ToBone); if (flag) { PmxStreamHelper.WriteElement_Int32(s, this.To_Bone, f.BoneSize, true); } else { V3_BytesConvert.ToStream(s, this.To_Offset); } bool flag2 = this.GetFlag(PmxBone.BoneFlags.AppendRotation) || this.GetFlag(PmxBone.BoneFlags.AppendTranslation); if (flag2) { PmxStreamHelper.WriteElement_Int32(s, this.AppendParent, f.BoneSize, true); PmxStreamHelper.WriteElement_Float(s, this.AppendRatio); } bool flag3 = this.GetFlag(PmxBone.BoneFlags.FixAxis); if (flag3) { V3_BytesConvert.ToStream(s, this.Axis); } bool flag4 = this.GetFlag(PmxBone.BoneFlags.LocalFrame); if (flag4) { this.NormalizeLocal(); V3_BytesConvert.ToStream(s, this.LocalX); V3_BytesConvert.ToStream(s, this.LocalZ); } bool flag5 = this.GetFlag(PmxBone.BoneFlags.ExtParent); if (flag5) { PmxStreamHelper.WriteElement_Int32(s, this.ExtKey, 4, true); } bool flag6 = this.GetFlag(PmxBone.BoneFlags.IK); if (flag6) { this.IK.ToStreamEx(s, f); } }
// Token: 0x060001CD RID: 461 RVA: 0x000109A8 File Offset: 0x0000EBA8 public override void ToStreamEx(Stream s, PmxElementFormat size) { PmxStreamHelper.WriteElement_Int32(s, this.Index, size.MaterialSize, true); s.WriteByte((byte)this.Op); V4_BytesConvert.ToStream(s, this.Data.Diffuse); V4_BytesConvert.ToStream(s, this.Data.Specular); V3_BytesConvert.ToStream(s, this.Data.Ambient); V4_BytesConvert.ToStream(s, this.Data.EdgeColor); PmxStreamHelper.WriteElement_Float(s, this.Data.EdgeSize); V4_BytesConvert.ToStream(s, this.Data.Tex); V4_BytesConvert.ToStream(s, this.Data.Sphere); V4_BytesConvert.ToStream(s, this.Data.Toon); }
public override void ToStreamEx(Stream s, PmxElementFormat f = null) { base.ToStreamEx(s, f); PmxStreamHelper.WriteElement_Int32(s, Index, f.MaterialSize); s.WriteByte((byte)Op); V4_BytesConvert.ToStream(s, Data.Diffuse); V4_BytesConvert.ToStream(s, Data.Specular); V3_BytesConvert.ToStream(s, Data.Ambient); V4_BytesConvert.ToStream(s, Data.EdgeColor); PmxStreamHelper.WriteElement_Float(s, Data.EdgeSize); V4_BytesConvert.ToStream(s, Data.Tex); V4_BytesConvert.ToStream(s, Data.Sphere); V4_BytesConvert.ToStream(s, Data.Toon); }
// Token: 0x060000DE RID: 222 RVA: 0x0000DE5C File Offset: 0x0000C05C public void ToStreamEx(Stream s, PmxElementFormat f) { PmxStreamHelper.WriteString(s, this.Name, f); PmxStreamHelper.WriteString(s, this.NameE, f); PmxStreamHelper.WriteElement_Int32(s, this.Bone, f.BoneSize, true); PmxStreamHelper.WriteElement_Int32(s, this.Group, 1, true); PmxStreamHelper.WriteElement_Int32(s, (int)this.PassGroup.ToFlagBits(), 2, false); s.WriteByte((byte)this.BoxType); V3_BytesConvert.ToStream(s, this.BoxSize); V3_BytesConvert.ToStream(s, this.Position); V3_BytesConvert.ToStream(s, this.Rotation); PmxStreamHelper.WriteElement_Float(s, this.Mass); V4_BytesConvert.ToStream(s, new Vector4(this.PositionDamping, this.RotationDamping, this.Restitution, this.Friction)); s.WriteByte((byte)this.Mode); }
public void ToStreamEx(Stream s, PmxElementFormat f = null) { PmxStreamHelper.WriteString(s, Name, f); PmxStreamHelper.WriteString(s, NameE, f); V3_BytesConvert.ToStream(s, Position); PmxStreamHelper.WriteElement_Int32(s, Parent, f.BoneSize); PmxStreamHelper.WriteElement_Int32(s, Level); PmxStreamHelper.WriteElement_Int32(s, (int)Flags, 2, signed: false); if (GetFlag(BoneFlags.ToBone)) { PmxStreamHelper.WriteElement_Int32(s, To_Bone, f.BoneSize); } else { V3_BytesConvert.ToStream(s, To_Offset); } if (GetFlag(BoneFlags.AddRotation) || GetFlag(BoneFlags.AddTranslation)) { PmxStreamHelper.WriteElement_Int32(s, AddParent, f.BoneSize); PmxStreamHelper.WriteElement_Float(s, AddRatio); } if (GetFlag(BoneFlags.FixAxis)) { V3_BytesConvert.ToStream(s, Axis); } if (GetFlag(BoneFlags.LocalFrame)) { if (!f.WithID) { NormalizeLocal(); } V3_BytesConvert.ToStream(s, LocalX); V3_BytesConvert.ToStream(s, LocalZ); } if (GetFlag(BoneFlags.ExtParent)) { PmxStreamHelper.WriteElement_Int32(s, ExtKey); } if (GetFlag(BoneFlags.IK)) { IK.ToStreamEx(s, f); } if (f.WithID) { PmxStreamHelper.WriteElement_UInt(s, base.UID); PmxStreamHelper.WriteElement_UInt(s, base.CID); } }
// Token: 0x060001A9 RID: 425 RVA: 0x000100B0 File Offset: 0x0000E2B0 public void ToStreamEx(Stream s, PmxElementFormat f) { PmxStreamHelper.WriteString(s, this.Name, f); PmxStreamHelper.WriteString(s, this.NameE, f); V4_BytesConvert.ToStream(s, V4_BytesConvert.ColorToVector4(this.Diffuse)); V3_BytesConvert.ToStream(s, V3_BytesConvert.ColorToVector3(this.Specular)); PmxStreamHelper.WriteElement_Float(s, this.Power); V3_BytesConvert.ToStream(s, V3_BytesConvert.ColorToVector3(this.Ambient)); s.WriteByte((byte)this.Flags); V4_BytesConvert.ToStream(s, V4_BytesConvert.ColorToVector4(this.EdgeColor)); PmxStreamHelper.WriteElement_Float(s, this.EdgeSize); PmxStreamHelper.WriteString(s, this.Tex, f); PmxStreamHelper.WriteString(s, this.Sphere, f); s.WriteByte((byte)this.SphereMode); PmxStreamHelper.WriteString(s, this.Toon, f); PmxStreamHelper.WriteString(s, this.Memo, f); PmxStreamHelper.WriteElement_Int32(s, this.FaceCount, 4, true); }
public void ToStreamEx(Stream s, PmxElementFormat f = null) { PmxStreamHelper.WriteString(s, Name, f); PmxStreamHelper.WriteString(s, NameE, f); V4_BytesConvert.ToStream(s, Diffuse); V3_BytesConvert.ToStream(s, Specular); PmxStreamHelper.WriteElement_Float(s, Power); V3_BytesConvert.ToStream(s, Ambient); s.WriteByte((byte)Flags); V4_BytesConvert.ToStream(s, EdgeColor); PmxStreamHelper.WriteElement_Float(s, EdgeSize); PmxStreamHelper.WriteString(s, Tex, f); PmxStreamHelper.WriteString(s, Sphere, f); s.WriteByte((byte)SphereMode); PmxStreamHelper.WriteString(s, Toon, f); PmxStreamHelper.WriteString(s, Memo, f); PmxStreamHelper.WriteElement_Int32(s, FaceCount); }
public void ToStreamEx(Stream s, PmxElementFormat f = null) { PmxStreamHelper.WriteString(s, Name, f); PmxStreamHelper.WriteString(s, NameE, f); PmxStreamHelper.WriteElement_Int32(s, Bone, f.BoneSize); PmxStreamHelper.WriteElement_Int32(s, Group, 1); PmxStreamHelper.WriteElement_Int32(s, PassGroup.ToFlagBits(), 2, signed: false); s.WriteByte((byte)BoxType); V3_BytesConvert.ToStream(s, BoxSize); V3_BytesConvert.ToStream(s, Position); V3_BytesConvert.ToStream(s, Rotation); PmxStreamHelper.WriteElement_Float(s, Mass); V4_BytesConvert.ToStream(s, new Vector4(PositionDamping, RotationDamping, Restitution, Friction)); s.WriteByte((byte)Mode); if (f.WithID) { PmxStreamHelper.WriteElement_UInt(s, base.UID); PmxStreamHelper.WriteElement_UInt(s, base.CID); } }
// Token: 0x06000115 RID: 277 RVA: 0x0000E978 File Offset: 0x0000CB78 public override void ToStreamEx(Stream s, PmxElementFormat size) { PmxStreamHelper.WriteElement_Int32(s, this.Index, size.BoneSize, true); V3_BytesConvert.ToStream(s, this.Translation); V4_BytesConvert.ToStream(s, new Vector4(this.Rotaion.x, this.Rotaion.y, this.Rotaion.z, this.Rotaion.w)); }
// Token: 0x0600028F RID: 655 RVA: 0x0001451B File Offset: 0x0001271B public override void ToStreamEx(Stream s, PmxElementFormat size) { PmxStreamHelper.WriteElement_Int32(s, this.Index, size.VertexSize, false); V3_BytesConvert.ToStream(s, this.Offset); }
public override void ToStreamEx(Stream s, PmxElementFormat f = null) { base.ToStreamEx(s, f); PmxStreamHelper.WriteElement_Int32(s, Index, f.VertexSize, signed: false); V3_BytesConvert.ToStream(s, Offset); }