public static ITypeId GetPathAnimationForType(ITypeId type) { ITypeId typeId; AnimationSceneNode.PlatformNeutralTypeDictionaryTryGetValue(PathAnimationSceneNode.animationsForTypes, type, out typeId); return(typeId); }
public static ITypeId GetFromToAnimationForType(ITypeId type, IProjectContext projectContext) { ITypeId type1 = (ITypeId)null; bool flag = AnimationSceneNode.PlatformNeutralTypeDictionaryTryGetValue(FromToAnimationSceneNode.animationsForTypes, type, out type1); if (flag) { flag = projectContext.Platform.Metadata.IsSupported((ITypeResolver)projectContext, type1); } if (!flag) { type1 = (ITypeId)null; } return(type1); }
private ITypeId GetKeyFrameType(KeyFrameInterpolationType keyFrameInterpolationType) { ITypeId typeId; switch (keyFrameInterpolationType) { case KeyFrameInterpolationType.Discrete: AnimationSceneNode.PlatformNeutralTypeDictionaryTryGetValue(KeyFrameAnimationSceneNode.discreteKeyFrameTypes, this.AnimatedType, out typeId); break; case KeyFrameInterpolationType.Spline: AnimationSceneNode.PlatformNeutralTypeDictionaryTryGetValue(KeyFrameAnimationSceneNode.splineKeyFrameTypes, this.AnimatedType, out typeId); break; case KeyFrameInterpolationType.Easing: AnimationSceneNode.PlatformNeutralTypeDictionaryTryGetValue(KeyFrameAnimationSceneNode.easingKeyFrameTypes, this.AnimatedType, out typeId); break; default: typeId = (ITypeId)null; break; } return(typeId); }