예제 #1
0
        protected void SelectAchievement(DiscordMafia.Achievement.Achievement achievement)
        {
            var currentCrumbAdjuster = new NavigationNodeAdjuster(Request.HttpContext)
            {
                KeyToAdjust  = "AchievementView",
                AdjustedText = achievement.GetName(language)
            };

            currentCrumbAdjuster.AddToContext();
        }
 public static string GetName(this Achievement achievement, ILanguage language)
 {
     return(GetLangInfo(achievement, language)?.Name ?? $"#ACHIEVEMENT_NAME_{achievement.Id}");
 }
 public static string GetDescription(this Achievement achievement, ILanguage language)
 {
     return(GetLangInfo(achievement, language)?.Description ?? $"#ACHIEVEMENT_DESC_{achievement.Id}");
 }