Пример #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");
        }
Пример #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}");
        }