Пример #1
0
 public override void PreSerialize(ref AnimationKeyValuePair <T>[] obj, ArchiveMode mode, SerializationStream stream)
 {
     if (mode == ArchiveMode.Serialize)
     {
         stream.Write(obj.Length);
     }
     else if (mode == ArchiveMode.Deserialize)
     {
         int length = stream.ReadInt32();
         obj = new AnimationKeyValuePair <T> [length];
     }
 }
Пример #2
0
 private void UpdateAnimation(ref AnimationKeyValuePair <T> animationValue)
 {
     UpdateAnimation(ref channels.Items[animationValue.ChannelIndex], ref animationValue.Value);
 }