예제 #1
0
        internal static PlatformIcon[] GetRequiredPlatformIconsByType(IPlatformIconProvider platformIcons, PlatformIconKind kind)
        {
            Dictionary <PlatformIconKind, PlatformIcon[]> requiredIcons = platformIcons.GetRequiredPlatformIcons();

            if (kind != PlatformIconKind.Any)
            {
                return(requiredIcons[kind]);
            }

            return(requiredIcons.Values.SelectMany(i => i).ToArray());
        }
예제 #2
0
        public static PlatformIconKind[] GetSupportedIconKindsForPlatform(BuildTargetGroup platform)
        {
            IPlatformIconProvider platformIconProvider = GetPlatformIconProvider(platform);

            if (platformIconProvider == null)
            {
                return new PlatformIconKind[] {}
            }
            ;

            return(platformIconProvider.GetRequiredPlatformIcons().Keys.ToArray());
        }
예제 #3
0
        internal static PlatformIcon[] GetRequiredPlatformIconsByType(IPlatformIconProvider platformIcons, PlatformIconKind kind)
        {
            Dictionary <PlatformIconKind, PlatformIcon[]> requiredPlatformIcons = platformIcons.GetRequiredPlatformIcons();

            PlatformIcon[] result;
            if (kind != PlatformIconKind.Any)
            {
                result = requiredPlatformIcons[kind];
            }
            else
            {
                result = requiredPlatformIcons.Values.SelectMany((PlatformIcon[] i) => i).ToArray <PlatformIcon>();
            }
            return(result);
        }