/// <summary> /// Raise the keyframe added event /// </summary> /// <param name="entity">entity the keyframe belongs to</param> /// <param name="time">at what time the </param> /// <param name="key"></param> private void RaiseKeyframeAdded(Entity entity, int time, KeyframePropertyData key) { KeyframeAddedHandler evt = KeyframeAdded; if (evt != null) { KeyframeAdded(entity, time, key); } }
/// <summary> /// Adds the keyframe to the timeline /// </summary> /// <param name="key">the keyframe itself</param> /// <param name="time">the time at which the keyframe is</param> /// <param name="entity">on which entity is this keyframe</param> public void AddKeyframe(KeyframePropertyData key, int time, Entity entity) { //Check if we have any entry for this property info if (!propertiesMappedKeyframes.ContainsKey(key.Property)) { propertiesMappedKeyframes.Add(key.Property, new SortedList <int, KeyframePropertyData>()); } propertiesMappedKeyframes[key.Property].Add(time, key); //lastly add a nodeMappedProperty entry if (!EntityMappedPropertyInfo.ContainsKey(entity)) { EntityMappedPropertyInfo.Add(entity, new List <KeyframePropertyInfo>()); } EntityMappedPropertyInfo[entity].Add(key.Property); //Raise added event RaiseKeyframeAdded(entity, time, key); }
public void MoveKeyframe(KeyframePropertyData key, int newTime) { }
public void RemoveKey(KeyframePropertyData keyframe, KeyframePropertyData key) { throw new NotImplementedException(); }
public void RemoveKey(KeyframePropertyData key) { }