Exemplo n.º 1
0
 public void Write(AssetWriter writer)
 {
     writer.Write(Time);
     Value.Write(writer);
     InSlope.Write(writer);
     OutSlope.Write(writer);
     if (HasTangentMode(writer.Version, writer.Flags))
     {
         writer.Write(TangentMode);
     }
     if (HasWeight(writer.Version))
     {
         writer.Write((int)WeightedMode);
         InWeight.Write(writer);
         OutWeight.Write(writer);
     }
 }
Exemplo n.º 2
0
        public void Write(AssetWriter writer)
        {
            KeyframeTplLayout layout = writer.Layout.Misc.KeyframeTpl;

            writer.Write(Time);
            Value.Write(writer);
            InSlope.Write(writer);
            OutSlope.Write(writer);
            if (layout.HasTangentMode)
            {
                writer.Write(TangentMode);
            }
            if (layout.HasWeightedMode)
            {
                writer.Write((int)WeightedMode);
                InWeight.Write(writer);
                OutWeight.Write(writer);
            }
        }