コード例 #1
0
 /// <summary>
 /// Retrieve the priority level of this WeaponStats instance, if it is not null and contains at least one valid value.
 /// </summary>
 /// <param name="keywords">List of keywords currently applied to a weapon.</param>
 /// <returns>int</returns>
 public int GetPriority(ExtendedList <IFormLinkGetter <IKeywordGetter> >?keywords)
 {
     if ((keywords != null) && (!ShouldSkip()) && keywords.Any(kywd => Keyword.Equals(kywd)))
     {
         return(Priority);
     }
     return(Constants.DefaultPriority);
 }