Ejemplo n.º 1
0
        public static void Initialize()
        {
            foreach (var record in AIUnitRecord.AIUnits)
            {
                record.Skins = SkinRecord.GetSkins(record.Id);

                record.BasicAttack = SpellRecord.GetSpellCaseInsensitive(record.Name + BASIC_ATTACK_SPELL_SUFFIX);
            }
        }
Ejemplo n.º 2
0
        public static void Initialize()
        {
            foreach (var record in AIUnitRecord.AIUnits)
            {
                record.Skins = SkinRecord.GetSkins(record.Id);

                record.Spells = (new SpellRecord[4]
                {
                    SpellRecord.GetSpell(record.Spell1),
                    SpellRecord.GetSpell(record.Spell2),
                    SpellRecord.GetSpell(record.Spell3),
                    SpellRecord.GetSpell(record.Spell4),
                }).Where(x => x != null).ToArray();

                record.BasicAttack = SpellRecord.GetSpellCaseInsensitive(record.Name + BASIC_ATTACK_SPELL_FOOTER);
            }
        }