コード例 #1
0
ファイル: AIUnitRecord.cs プロジェクト: sahlie1985/Legends
        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);
            }
        }
コード例 #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.GetSpell(record.Name + BASIC_ATTACK_SPELL_FOOTER);
            }
        }