public void Read(FileStream fs) { this.header = (UIMotionData.Property.PropertyHeader)UIMotionData.ReadObject(fs, typeof(UIMotionData.Property.PropertyHeader)); int num = 0; while ((long)num < (long)((ulong)this.header.keyframeNum)) { UIMotionData.Property.Keyframe keyframe = (UIMotionData.Property.Keyframe)UIMotionData.ReadObject(fs, typeof(UIMotionData.Property.Keyframe)); this.keyframes.Add(keyframe); num++; } }
public void Read(FileStream fs) { this.header = (UIMotionData.TimeMap.TimeMapHeader)UIMotionData.ReadObject(fs, typeof(UIMotionData.TimeMap.TimeMapHeader)); if (this.header.easeType == EaseType.Custom) { int num = 0; while ((long)num < (long)((ulong)this.header.customPointNum)) { UIMotionData.TimeMap.CustomPoint customPoint = (UIMotionData.TimeMap.CustomPoint)UIMotionData.ReadObject(fs, typeof(UIMotionData.TimeMap.CustomPoint)); this.customPoints.Add(customPoint); num++; } } }
private void ReadHeader(FileStream fs) { this.header = (UIMotionData.Header)UIMotionData.ReadObject(fs, typeof(UIMotionData.Header)); }