Exemplo n.º 1
0
            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++;
                }
            }
Exemplo n.º 2
0
 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++;
         }
     }
 }
Exemplo n.º 3
0
 private void ReadHeader(FileStream fs)
 {
     this.header = (UIMotionData.Header)UIMotionData.ReadObject(fs, typeof(UIMotionData.Header));
 }