Ejemplo n.º 1
0
 public override void WriteData(GrnBinaryWriter writer)
 {
     writer.Write(this.ParentIndex);
     writer.Write(this.Position);
     writer.Write(this.Rotation);
     writer.WriteMatrix3x3(this.Scale);
 }
        public override void WriteData(GrnBinaryWriter writer)
        {
            writer.Write(this.TransformChannelIndex);

            for (int i = 0; i < 5; ++i)
            {
                writer.Write(this.Unknown[i]);
            }

            writer.Write(this.Positions.Count);
            writer.Write(this.Rotations.Count);
            writer.Write(this.Scales.Count);

            for (int i = 0; i < 4; ++i)
            {
                writer.Write(this.Unknown2[i]);
            }

            for (int i = 0; i < this.PositionKeys.Count; ++i)
            {
                writer.Write(this.PositionKeys[i]);
            }
            for (int i = 0; i < this.RotationKeys.Count; ++i)
            {
                writer.Write(this.RotationKeys[i]);
            }
            for (int i = 0; i < this.ScaleKeys.Count; ++i)
            {
                writer.Write(this.ScaleKeys[i]);
            }

            for (int i = 0; i < this.Positions.Count; ++i)
            {
                writer.Write(this.Positions[i]);
            }
            for (int i = 0; i < this.Rotations.Count; ++i)
            {
                writer.Write(this.Rotations[i]);
            }
            for (int i = 0; i < this.Scales.Count; ++i)
            {
                writer.WriteMatrix3x3(this.Scales[i]);
            }
        }