Esempio n. 1
0
        public static List <Ability> getAllAbilities()
        {
            if (allAbilities == null)
            {
                XComAbilityListReader reader = new XComAbilityListReader();
                allAbilities = reader.read();
            }

            return(allAbilities);
        }
Esempio n. 2
0
        static ProjectState()
        {
            reader    = new XComAbilityListReader();
            abilities = reader.read();

            manager = new SavedSoldiersManager();
            loadSoldierClasses();

            setOpenSoldierClass(soldierClasses.FirstOrDefault());
        }
Esempio n. 3
0
        public static Ability getAbility(string internalName)
        {
            if (allAbilities == null)
            {
                XComAbilityListReader reader = new XComAbilityListReader();
                allAbilities = reader.read();
            }

            return(allAbilities.Where(x => x.internalName.Equals(internalName)).SingleOrDefault());
        }
Esempio n. 4
0
 public static List <Ability> reloadAbilities()
 {
     reader    = new XComAbilityListReader();
     abilities = reader.read();
     return(abilities);
 }