Ejemplo n.º 1
0
        /// <summary>
        /// Returns formatted Item set file name with JSON extension
        /// </summary>
        /// <param name="source"></param>
        /// <returns></returns>
        public static string GetFormattedItemSetFileName(IBuildSource source, LoLMode mode, string appPrefix)
        {
            string sourceName    = source.GetSourceName();
            string sourceVersion = source.GetVersion();
            // Either show champion position as info, or LoL mode if not classic
            string championInfo = LoLModeUtil.FormatChampionInfoByMode(source, mode);

            return($"{appPrefix}_{sourceName}v{sourceVersion}_{championInfo}.json");
        }
Ejemplo n.º 2
0
        private static string GetPageTitle(IBuildSource source, LoLMode mode, ChampionViewModel champion)
        {
            string sourceName    = source.GetSourceName();
            string championName  = champion.Name;
            string championInfo  = LoLModeUtil.FormatChampionInfoByMode(source, mode);
            string sourceVersion = source.GetVersion();

            // Example for classic mode: OPGG - Annie Middle - v11.07
            // Example for ARAM mode: OPGG - Annie ARAM - v11.07
            return($"{sourceName} - {championName} {championInfo} - v{sourceVersion}");
        }
Ejemplo n.º 3
0
 public static LoLItemSetViewModel CreateItemSetPerChampion(IBuildSource source, ChampionViewModel champion, LoLMode mode, bool showSkillsOrder)
 {
     return(new LoLItemSetViewModel()
     {
         Title = GetPageTitle(source, mode, champion),
         Map = LoLModeUtil.GetMapNameByMode(mode),
         AssociatedChampions = new List <int> {
             champion.Id
         },
         Blocks = CreateBlockItems(source, showSkillsOrder)
     });
 }