public void Read(AssetStream stream) { Time = stream.ReadSingle(); Value.Read(stream); InSlope.Read(stream); OutSlope.Read(stream); }
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); } }
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); } }
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); } }