Пример #1
0
 public void Read(AssetStream stream)
 {
     Time = stream.ReadSingle();
     Value.Read(stream);
     InSlope.Read(stream);
     OutSlope.Read(stream);
 }
Пример #2
0
 public void Read(AssetStream stream)
 {
     Time = stream.ReadSingle();
     Value.Read(stream);
     InSlope.Read(stream);
     OutSlope.Read(stream);
     if (IsReadWeight(stream.Version))
     {
         WeightedMode = (WeightedMode)stream.ReadInt32();
         InWeight.Read(stream);
         OutWeight.Read(stream);
     }
 }
Пример #3
0
 public void Read(AssetReader reader)
 {
     Time = reader.ReadSingle();
     Value.Read(reader);
     InSlope.Read(reader);
     OutSlope.Read(reader);
     if (IsReadTangentMode(reader.Version, reader.Flags))
     {
         TangentMode = (TangentMode)reader.ReadInt32();
     }
     if (IsReadWeight(reader.Version))
     {
         WeightedMode = (WeightedMode)reader.ReadInt32();
         InWeight.Read(reader);
         OutWeight.Read(reader);
     }
 }
Пример #4
0
        public void Read(AssetReader reader)
        {
            KeyframeTplLayout layout = reader.Layout.Misc.KeyframeTpl;

            Time = reader.ReadSingle();
            Value.Read(reader);
            InSlope.Read(reader);
            OutSlope.Read(reader);
            if (layout.HasTangentMode)
            {
                TangentMode = reader.ReadInt32();
            }
            if (layout.HasWeightedMode)
            {
                WeightedMode = (WeightedMode)reader.ReadInt32();
                InWeight.Read(reader);
                OutWeight.Read(reader);
            }
        }