Пример #1
0
        public static string GetMapImageUrl(int mapId, AssetSize assetSize = AssetSize.Large)
        {
            var map  = GlobalStorage.HReachManager.Metadata.Data.Maps.First(m => m.Id == mapId);
            var path = String.Format("Maps/{0}/{1}.jpg", assetSize, map.MapDetails.ImageName);

            return(String.Format("{0}Content/Images/Area/Reach/Assets/{1}", GlobalStorage.AzureCdnEndpoint, path));
        }
Пример #2
0
        public static string GetCommendationImageUrl(int id, string tier, CommendationVariantClass variantClass, AssetSize assetSize)
        {
            if (tier.ToLowerInvariant() == "beginner")
                tier = "none";

            var path = String.Format("commendations/{0}/{0}_{1}_{2}_{3}.png", tier.ToLowerInvariant(),
                assetSize.ToString().ToLowerInvariant(), id, variantClass.ToString().ToLowerInvariant());
            return String.Format(Manager.ApiAssetUrl, path);
        }
Пример #3
0
        public static string GetRankUrl(string path, AssetSize assetSize)
        {
            path = path.Replace("/images/reachstats/", "");

            switch (assetSize)
            {
            case AssetSize.Large:
                path = path.Replace("/med/", "/large/");
                break;

            case AssetSize.Small:
                path = path.Replace("/med/", "/sm/");
                break;
            }

            return(String.Format(Manager.ApiAssetUrl, path));
        }
Пример #4
0
        public static string GetCommendationImageUrl(int id, string tier, CommendationVariantClass variantClass, AssetSize assetSize)
        {
            if (tier.ToLowerInvariant() == "beginner")
            {
                tier = "none";
            }

            var path = String.Format("commendations/{0}/{0}_{1}_{2}_{3}.png", tier.ToLowerInvariant(),
                                     assetSize.ToString().ToLowerInvariant(), id, variantClass.ToString().ToLowerInvariant());

            return(String.Format(Manager.ApiAssetUrl, path));
        }
Пример #5
0
        public static string GetIconImageUrl(GameVariantIcon icon, AssetSize assetSize)
        {
            var path = String.Format("Gametypes/{0}/{1}.png", assetSize, (int)icon);

            return(String.Format("{0}Content/Images/Area/Reach/Assets/{1}", GlobalStorage.AzureCdnEndpoint, path));
        }
Пример #6
0
        public static string GetMapImageUrl(string mapName, AssetSize assetSize = AssetSize.Large)
        {
            var path = String.Format("Maps/{0}/{1}.jpg", assetSize, AssetHelpers.MapIdDictionary[mapName]);

            return(String.Format("{0}Content/Images/Area/Reach/Assets/{1}", GlobalStorage.AzureCdnEndpoint, path));
        }
Пример #7
0
 public static string GetPlayerModelUrl(string gamertag, AssetSize assetSize)
 {
     return(String.Format("https://spartans.svc.halowaypoint.com/players/{0}/Reach/spartans/fullbody?target={1}", gamertag, assetSize));
 }
Пример #8
0
        public static string GetDifficultyImageUrl(Difficulty difficulty, AssetSize assetSize)
        {
            var path = String.Format("campaign_progress/{0}_{1}.png", difficulty.ToString().ToLowerInvariant(), assetSize.ToString().ToLowerInvariant());

            return(String.Format(Manager.ApiAssetUrl, path));
        }
Пример #9
0
        public static string GetRankUrl(string path, AssetSize assetSize)
        {
            path = path.Replace("/images/reachstats/", "");

            switch (assetSize)
            {
                case AssetSize.Large:
                    path = path.Replace("/med/", "/large/");
                    break;

                case AssetSize.Small:
                    path = path.Replace("/med/", "/sm/");
                    break;
            }

            return String.Format(Manager.ApiAssetUrl, path);
        }
Пример #10
0
 public static string GetPlayerModelUrl(string gamertag, AssetSize assetSize)
 {
     return String.Format("https://spartans.svc.halowaypoint.com/players/{0}/Reach/spartans/fullbody?target={1}", gamertag, assetSize);
 }
Пример #11
0
 public static string GetMapImageUrl(int mapId, AssetSize assetSize = AssetSize.Large)
 {
     var map = GlobalStorage.HReachManager.Metadata.Data.Maps.First(m => m.Id == mapId);
     var path = String.Format("Maps/{0}/{1}.jpg", assetSize, map.MapDetails.ImageName);
     return String.Format("{0}Content/Images/Area/Reach/Assets/{1}", GlobalStorage.AzureCdnEndpoint, path);
 }
Пример #12
0
 public static string GetMapImageUrl(string mapName, AssetSize assetSize = AssetSize.Large)
 {
     var path = String.Format("Maps/{0}/{1}.jpg", assetSize, AssetHelpers.MapIdDictionary[mapName]);
     return String.Format("{0}Content/Images/Area/Reach/Assets/{1}", GlobalStorage.AzureCdnEndpoint, path);
 }
Пример #13
0
 public static string GetIconImageUrl(GameVariantIcon icon, AssetSize assetSize)
 {
     var path = String.Format("Gametypes/{0}/{1}.png", assetSize, (int)icon);
     return String.Format("{0}Content/Images/Area/Reach/Assets/{1}", GlobalStorage.AzureCdnEndpoint, path);
 }
Пример #14
0
 public static string GetDifficultyImageUrl(Difficulty difficulty, AssetSize assetSize)
 {
     var path = String.Format("campaign_progress/{0}_{1}.png", difficulty.ToString().ToLowerInvariant(), assetSize.ToString().ToLowerInvariant());
     return String.Format(Manager.ApiAssetUrl, path);
 }