コード例 #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);
     }
 }
コード例 #2
0
ファイル: KeyframeTpl.cs プロジェクト: jack111331/UtinyRipper
        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);
            }
        }