Esempio n. 1
0
 public async Task <IViewComponentResult> InvokeAsync(CfgSkillWeb skill, string type)
 {
     try
     {
         return(View(type, skill));
     }
     catch (Exception ex)
     {
         return(View(skill));
     }
 }
 public static string GetGenericTranslation(this CfgSkillWeb skill)
 {
     if (skill.Effects != null)
     {
         string Description = "";
         foreach (var effect in skill.Effects)
         {
             Description += effect.GetGenericDescription() + "\n";
         }
         return(Description);
     }
     return("");
 }
 public static List <CfgSkillEffect> GetSkillEffects(this CfgSkillWeb skill)
 {
     return(skill.Effects);
 }