Пример #1
0
        public static ITypeId GetPathAnimationForType(ITypeId type)
        {
            ITypeId typeId;

            AnimationSceneNode.PlatformNeutralTypeDictionaryTryGetValue(PathAnimationSceneNode.animationsForTypes, type, out typeId);
            return(typeId);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }