コード例 #1
0
        public Attack GenerateAttack(IStatsVariables stats)
        {
            var damages = stats.GetDamageReferences()
                          .Where(x => x.StatValue != 0)
                          .Select(x => new Damage(x.StatType, x.StatValue))
                          .ToArray();

            return(new Attack(damages));
        }