コード例 #1
0
        // returns the buff Id of a transformation menu selection
        public static BuffInfo GetBuffFromMenuSelection(MenuSelectionID menuId)
        {
            // don't return any of the buffs by menu selection if there isn't a selection. That's bad.
            if (menuId == MenuSelectionID.None)
            {
                return(null);
            }

            return(BuffInfoList.Where(x => x.MenuId == menuId).FirstOrDefault());
        }
コード例 #2
0
 // A bunch of lists joined together, in order to contain every possible transformation buff.
 // when adding new ones, make sure they wind up here in some form, even if you just have to add them one at a time.
 // (Union() excludes duplicates automatically)
 public static List <BuffInfo> AllBuffs()
 {
     return(BuffInfoList.Where(x => x.BuffKeyName != BuffKeyNames.KaiokenFatigue && x.BuffKeyName != BuffKeyNames.TransformationExhaustion).ToList());
 }